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.

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