_base.less 7.7 KB

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