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.

519 lines
11 KiB

9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
  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. .text {
  140. &.red {
  141. color: #d95c5c !important;
  142. a {
  143. color: #d95c5c !important;
  144. &:hover {
  145. color: #E67777 !important;
  146. }
  147. }
  148. }
  149. &.blue {
  150. color: #428bca !important;
  151. a {
  152. color: #15c !important;
  153. &:hover {
  154. color: #428bca !important;
  155. }
  156. }
  157. }
  158. &.black {
  159. color: #444;
  160. &:hover {
  161. color: #000;
  162. }
  163. }
  164. &.grey {
  165. color: #767676 !important;
  166. a {
  167. color: #444 !important;
  168. &:hover {
  169. color: #000 !important;
  170. }
  171. }
  172. }
  173. &.light.grey {
  174. color: #888 !important;
  175. }
  176. &.green {
  177. color: #6cc644 !important;
  178. }
  179. &.purple {
  180. color: #6e5494 !important;
  181. }
  182. &.yellow {
  183. color: #FBBD08 !important;
  184. }
  185. &.gold {
  186. color: #a1882b !important;
  187. }
  188. &.left {
  189. text-align: left !important;
  190. }
  191. &.right {
  192. text-align: right !important;
  193. }
  194. &.small {
  195. font-size: 0.75em;
  196. }
  197. &.normal {
  198. font-weight: normal;
  199. }
  200. &.bold {
  201. font-weight: bold;
  202. }
  203. &.italic {
  204. font-style: italic;
  205. }
  206. &.truncate {
  207. overflow: hidden;
  208. text-overflow: ellipsis;
  209. white-space: nowrap;
  210. display: inline-block;
  211. }
  212. &.thin {
  213. font-weight: normal;
  214. }
  215. &.middle {
  216. vertical-align: middle;
  217. }
  218. }
  219. .message {
  220. text-align: center;
  221. }
  222. .header > i + .content {
  223. padding-left: 0.75rem;
  224. vertical-align: middle;
  225. }
  226. .warning {
  227. &.header {
  228. background-color: #F9EDBE !important;
  229. border-color: #F0C36D;
  230. }
  231. &.segment {
  232. border-color: #F0C36D;
  233. }
  234. }
  235. .info {
  236. &.segment {
  237. border: 1px solid #c5d5dd;
  238. &.top {
  239. background-color: #e6f1f6 !important;
  240. h3, h4 {
  241. margin-top: 0;
  242. }
  243. h3:last-child {
  244. margin-top: 4px;
  245. }
  246. > :last-child {
  247. margin-bottom: 0;
  248. }
  249. }
  250. }
  251. }
  252. .normal.header {
  253. font-weight: normal;
  254. }
  255. .avatar.image {
  256. border-radius: 3px;
  257. }
  258. .form {
  259. .fake {
  260. display: none !important;
  261. }
  262. .sub.field {
  263. margin-left: 25px;
  264. }
  265. }
  266. .sha.label {
  267. font-family: Consolas, Menlo, Monaco, "Lucida Console", monospace;
  268. font-size: 13px;
  269. padding: 6px 10px 4px 10px;
  270. font-weight: normal;
  271. margin: 0 6px;
  272. }
  273. &.status.buttons {
  274. .octicon {
  275. margin-right: 4px;
  276. }
  277. }
  278. &.inline.delete-button {
  279. padding: 8px 15px;
  280. font-weight: normal;
  281. }
  282. .background {
  283. &.red {
  284. background-color: #d95c5c !important;
  285. }
  286. &.blue {
  287. background-color: #428bca !important;
  288. }
  289. &.black {
  290. background-color: #444;
  291. }
  292. &.grey {
  293. background-color: #767676 !important;
  294. }
  295. &.light.grey {
  296. background-color: #888 !important;
  297. }
  298. &.green {
  299. background-color: #6cc644 !important;
  300. }
  301. &.purple {
  302. background-color: #6e5494 !important;
  303. }
  304. &.yellow {
  305. background-color: #FBBD08 !important;
  306. }
  307. &.gold {
  308. background-color: #a1882b !important;
  309. }
  310. }
  311. .branch-tag-choice {
  312. line-height: 20px;
  313. }
  314. }
  315. .overflow.menu {
  316. .items {
  317. max-height: 300px;
  318. overflow-y: auto;
  319. .item {
  320. position: relative;
  321. cursor: pointer;
  322. display: block;
  323. border: none;
  324. height: auto;
  325. border-top: none;
  326. line-height: 1em;
  327. color: rgba(0,0,0,.8);
  328. padding: .71428571em 1.14285714em !important;
  329. font-size: 1rem;
  330. text-transform: none;
  331. font-weight: 400;
  332. box-shadow: none;
  333. -webkit-touch-callout: none;
  334. &.active {
  335. font-weight: 700;
  336. }
  337. &:hover {
  338. background: rgba(0,0,0,.05);
  339. color: rgba(0,0,0,.8);
  340. z-index: 13;
  341. }
  342. }
  343. }
  344. }
  345. .scrolling.menu {
  346. .item.selected {
  347. font-weight: 700 !important;
  348. }
  349. }
  350. footer {
  351. margin-top: @footer-margin+14px !important;
  352. height: @footer-margin;
  353. background-color: white;
  354. border-top: 1px solid #d6d6d6;
  355. clear: both;
  356. width: 100%;
  357. color: #888888;
  358. .container {
  359. padding-top: 10px;
  360. .fa {
  361. width: 16px;
  362. text-align: center;
  363. color: #428bca;
  364. }
  365. .links >* {
  366. border-left: 1px solid #d6d6d6;
  367. padding-left: 8px;
  368. margin-left: 5px;
  369. &:first-child {
  370. border-left: none;
  371. }
  372. }
  373. }
  374. .ui.language .menu {
  375. max-height: 500px;
  376. overflow-y: auto;
  377. margin-bottom: 7px;
  378. }
  379. }
  380. .hide {
  381. display: none;
  382. }
  383. .center {
  384. text-align: center;
  385. }
  386. .generate-img(16);
  387. .generate-img(@n, @i: 1) when (@i =< @n) {
  388. .img-@{i} {
  389. width: (2px * @i) !important;
  390. height: (2px * @i) !important;
  391. }
  392. .generate-img(@n, (@i + 1));
  393. }
  394. // Accessibility
  395. .sr-only {
  396. position: absolute;
  397. width: 1px;
  398. height: 1px;
  399. padding: 0;
  400. margin: -1px;
  401. overflow: hidden;
  402. clip: rect(0, 0, 0, 0);
  403. border: 0;
  404. }
  405. .sr-only-focusable:active,
  406. .sr-only-focusable:focus {
  407. position: static;
  408. width: auto;
  409. height: auto;
  410. margin: 0;
  411. overflow: visible;
  412. clip: auto;
  413. }
  414. @media only screen and (max-width: 991px) and (min-width: 768px) {
  415. .ui.container {
  416. width: 95%;
  417. }
  418. }
  419. /* Overrides some styles of the Highlight.js plugin */
  420. .hljs {
  421. background: inherit !important;
  422. padding: 0 !important;
  423. }
  424. .ui.menu.new-menu {
  425. justify-content: center !important;
  426. padding-top: 15px !important;
  427. margin-top: -15px !important;
  428. margin-bottom: 15px !important;
  429. background-color: #FAFAFA !important;
  430. border-width: 1px !important;
  431. }
  432. @media only screen and (max-width: 1200px) {
  433. .ui.menu.new-menu {
  434. overflow-x: auto !important;
  435. justify-content: left !important;
  436. padding-bottom: 5px;
  437. }
  438. .ui.menu.new-menu::-webkit-scrollbar {
  439. height: 8px;
  440. display: none;
  441. }
  442. .ui.menu.new-menu:hover::-webkit-scrollbar {
  443. display: block;
  444. }
  445. .ui.menu.new-menu::-webkit-scrollbar-track {
  446. background: rgba(0,0,0,0.01);
  447. }
  448. .ui.menu.new-menu::-webkit-scrollbar-thumb {
  449. background:rgba(0,0,0,0.2);
  450. }
  451. .ui.menu.new-menu:after {
  452. position: absolute;
  453. margin-top: -15px;
  454. display: block;
  455. background-image: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 100%);
  456. content: ' ';
  457. right: 0;
  458. height: 53px;
  459. z-index: 1000;
  460. width: 60px;
  461. clear: none;
  462. visibility: visible;
  463. }
  464. .ui.menu.new-menu a.item:last-child {
  465. padding-right: 30px !important;
  466. }
  467. }
  468. [v-cloak] {
  469. display: none !important;
  470. }
  471. .repos-search {
  472. padding-bottom: 0 !important;
  473. }
  474. .repos-filter {
  475. margin-top: 0 !important;
  476. border-bottom-width: 0 !important;
  477. margin-bottom: 2px !important;
  478. }