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

_base.less 11 kB

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