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.

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