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.

459 lines
7.6 KiB

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