You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_base.less 8.5KB

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