_base.less 5.7 KB

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