_base.less 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428
  1. @footer-margin: 40px;
  2. body {
  3. font-family: "PingFang SC", "Helvetica Neue", "Microsoft YaHei", Arial, Helvetica, sans-serif !important;
  4. background-color: #fff;
  5. overflow-y: scroll;
  6. }
  7. h1, h2, h3, h4, h5,
  8. .ui.header,
  9. .ui.menu,
  10. .ui.input input,
  11. .ui.button:not(.label) {
  12. font-family: "PingFang SC", 'Hiragino Sans GB', "Helvetica Neue", "Microsoft YaHei", Arial, Helvetica, sans-serif !important;
  13. }
  14. img {
  15. border-radius: 3px;
  16. }
  17. pre, code {
  18. font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
  19. &.raw {
  20. padding: 7px 12px;
  21. margin: 10px 0;
  22. background-color: #f8f8f8;
  23. border: 1px solid #ddd;
  24. border-radius: 3px;
  25. font-size: 13px;
  26. line-height: 1.5;
  27. overflow: auto;
  28. }
  29. &.wrap {
  30. white-space: pre-wrap; /* CSS 3 */
  31. // white-space: -moz-normal; /* Mozilla, since 1999 */
  32. // white-space: -normal; /* Opera 4-6 */
  33. // white-space: -o-normal; /* Opera 7 */
  34. word-break: break-word;
  35. }
  36. }
  37. .dont-break-out {
  38. /* These are technically the same, but use both */
  39. overflow-wrap: break-word;
  40. word-wrap: break-word;
  41. -ms-word-break: break-all;
  42. /* This is the dangerous one in WebKit, as it breaks things wherever */
  43. word-break: break-all;
  44. /* Instead use this non-standard one: */
  45. word-break: break-word;
  46. /* Adds a hyphen where the word breaks, if supported (No Blink) */
  47. -ms-hyphens: auto;
  48. -moz-hyphens: auto;
  49. -webkit-hyphens: auto;
  50. hyphens: auto;
  51. }
  52. .full.height {
  53. padding: 0;
  54. margin: 0 0 -@footer-margin*2 0;
  55. min-height: 100%;
  56. }
  57. .following.bar {
  58. z-index: 900;
  59. left: 0;
  60. width: 100%;
  61. &.light {
  62. background-color: white;
  63. border-bottom: 1px solid #DDDDDD;
  64. box-shadow: 0 2px 3px rgba(0, 0, 0, 0.04);
  65. }
  66. .column .menu {
  67. margin-top: 0;
  68. }
  69. .top.menu a.item.brand {
  70. padding-left: 0;
  71. }
  72. .brand .ui.mini.image {
  73. width: 30px;
  74. }
  75. .top.menu a.item:hover,
  76. .top.menu .dropdown.item:hover,
  77. .top.menu .dropdown.item.active {
  78. background-color: transparent;
  79. }
  80. .top.menu a.item:hover {
  81. color: rgba(0,0,0,.45);
  82. }
  83. .top.menu .menu {
  84. z-index: 900;
  85. }
  86. .icon,
  87. .octicon {
  88. margin-right: 5px !important;
  89. }
  90. .head.link.item {
  91. padding-right: 0 !important;
  92. }
  93. .avatar > .ui.image {
  94. margin-right: 0;
  95. }
  96. .avatar .octicon-triangle-down {
  97. margin-top: 6.5px;
  98. }
  99. .searchbox {
  100. background-color: rgb(244, 244, 244) !important;
  101. &:focus {
  102. background-color: rgb(233, 233, 233) !important;
  103. }
  104. }
  105. .text .octicon {
  106. width: 16px;
  107. text-align: center;
  108. }
  109. .right.menu {
  110. .menu {
  111. left: auto;
  112. right: 0;
  113. }
  114. .dropdown .menu {
  115. margin-top: 0;
  116. }
  117. }
  118. }
  119. .ui {
  120. &.left {
  121. float: left;
  122. }
  123. &.right {
  124. float: right;
  125. }
  126. &.container {
  127. &.fluid {
  128. &.padded {
  129. padding: 0 10px 0 10px;
  130. }
  131. }
  132. }
  133. &.form {
  134. .ui.button {
  135. font-weight: normal;
  136. }
  137. .box.field {
  138. padding-left: 27px;
  139. }
  140. }
  141. &.menu,
  142. &.vertical.menu,
  143. &.segment {
  144. box-shadow: none;
  145. }
  146. .text {
  147. &.red {
  148. color: #d95c5c !important;
  149. a {
  150. color: #d95c5c !important;
  151. &:hover {
  152. color: #E67777 !important;
  153. }
  154. }
  155. }
  156. &.blue {
  157. color: #428bca !important;
  158. a {
  159. color: #15c !important;
  160. &:hover {
  161. color: #428bca !important;
  162. }
  163. }
  164. }
  165. &.black {
  166. color: #444;
  167. &:hover {
  168. color: #000;
  169. }
  170. }
  171. &.grey {
  172. color: #767676 !important;
  173. a {
  174. color: #444 !important;
  175. &:hover {
  176. color: #000 !important;
  177. }
  178. }
  179. }
  180. &.light.grey {
  181. color: #888 !important;
  182. }
  183. &.green {
  184. color: #6cc644 !important;
  185. }
  186. &.purple {
  187. color: #6e5494 !important;
  188. }
  189. &.yellow {
  190. color: #FBBD08 !important;
  191. }
  192. &.gold {
  193. color: #a1882b !important;
  194. }
  195. &.left {
  196. text-align: left !important;
  197. }
  198. &.right {
  199. text-align: right !important;
  200. }
  201. &.small {
  202. font-size: 0.75em;
  203. }
  204. &.normal {
  205. font-weight: normal;
  206. }
  207. &.bold {
  208. font-weight: bold;
  209. }
  210. &.italic {
  211. font-style: italic;
  212. }
  213. &.truncate {
  214. overflow: hidden;
  215. text-overflow: ellipsis;
  216. white-space: nowrap;
  217. display: inline-block;
  218. }
  219. &.thin {
  220. font-weight: normal;
  221. }
  222. &.middle {
  223. vertical-align: middle;
  224. }
  225. }
  226. .message {
  227. text-align: center;
  228. }
  229. .header > i + .content {
  230. padding-left: 0.75rem;
  231. vertical-align: middle;
  232. }
  233. .warning {
  234. &.header {
  235. background-color: #F9EDBE !important;
  236. border-color: #F0C36D;
  237. }
  238. &.segment {
  239. border-color: #F0C36D;
  240. }
  241. }
  242. .info {
  243. &.segment {
  244. border: 1px solid #c5d5dd;
  245. &.top {
  246. background-color: #e6f1f6 !important;
  247. h3, h4 {
  248. margin-top: 0;
  249. }
  250. h3:last-child {
  251. margin-top: 4px;
  252. }
  253. > :last-child {
  254. margin-bottom: 0;
  255. }
  256. }
  257. }
  258. }
  259. .normal.header {
  260. font-weight: normal;
  261. }
  262. .avatar.image {
  263. border-radius: 3px;
  264. }
  265. .form {
  266. .fake {
  267. display: none !important;
  268. }
  269. .sub.field {
  270. margin-left: 25px;
  271. }
  272. }
  273. .sha.label {
  274. font-family: Consolas, Menlo, Monaco, "Lucida Console", monospace;
  275. font-size: 13px;
  276. padding: 6px 10px 4px 10px;
  277. font-weight: normal;
  278. margin: 0 6px;
  279. }
  280. &.status.buttons {
  281. .octicon {
  282. margin-right: 4px;
  283. }
  284. }
  285. &.inline.delete-button {
  286. padding: 8px 15px;
  287. font-weight: normal;
  288. }
  289. }
  290. .overflow.menu {
  291. .items {
  292. max-height: 300px;
  293. overflow-y: auto;
  294. .item {
  295. position: relative;
  296. cursor: pointer;
  297. display: block;
  298. border: none;
  299. height: auto;
  300. border-top: none;
  301. line-height: 1em;
  302. color: rgba(0,0,0,.8);
  303. padding: .71428571em 1.14285714em !important;
  304. font-size: 1rem;
  305. text-transform: none;
  306. font-weight: 400;
  307. box-shadow: none;
  308. -webkit-touch-callout: none;
  309. &.active {
  310. font-weight: 700;
  311. }
  312. &:hover {
  313. background: rgba(0,0,0,.05);
  314. color: rgba(0,0,0,.8);
  315. z-index: 13;
  316. }
  317. }
  318. }
  319. }
  320. .scrolling.menu {
  321. .item.selected {
  322. font-weight: 700 !important;
  323. }
  324. }
  325. footer {
  326. margin-top: @footer-margin+14px !important;
  327. height: @footer-margin;
  328. background-color: white;
  329. border-top: 1px solid #d6d6d6;
  330. clear: both;
  331. width: 100%;
  332. color: #888888;
  333. .container {
  334. padding-top: 10px;
  335. .fa {
  336. width: 16px;
  337. text-align: center;
  338. color: #428bca;
  339. }
  340. .links >* {
  341. border-left: 1px solid #d6d6d6;
  342. padding-left: 8px;
  343. margin-left: 5px;
  344. &:first-child {
  345. border-left: none;
  346. }
  347. }
  348. }
  349. .ui.language .menu {
  350. max-height: 500px;
  351. overflow-y: auto;
  352. margin-bottom: 7px;
  353. }
  354. }
  355. .hide {
  356. display: none;
  357. }
  358. .center {
  359. text-align: center;
  360. }
  361. .generate-img(16);
  362. .generate-img(@n, @i: 1) when (@i =< @n) {
  363. .img-@{i} {
  364. width: (2px * @i) !important;
  365. height: (2px * @i) !important;
  366. }
  367. .generate-img(@n, (@i + 1));
  368. }
  369. // Accessibility
  370. .sr-only {
  371. position: absolute;
  372. width: 1px;
  373. height: 1px;
  374. padding: 0;
  375. margin: -1px;
  376. overflow: hidden;
  377. clip: rect(0, 0, 0, 0);
  378. border: 0;
  379. }
  380. .sr-only-focusable:active,
  381. .sr-only-focusable:focus {
  382. position: static;
  383. width: auto;
  384. height: auto;
  385. margin: 0;
  386. overflow: visible;
  387. clip: auto;
  388. }
  389. @media only screen and (max-width: 991px) and (min-width: 768px) {
  390. .ui.container {
  391. width: 95%;
  392. }
  393. }
  394. /* Overrides some styles of the Highlight.js plugin */
  395. .hljs {
  396. background: inherit !important;
  397. padding: 0 !important;
  398. }