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.

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