_base.less 6.7 KB

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