_base.less 5.7 KB

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