_base.less 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  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. .octicon {
  73. width: 16px;
  74. text-align: center;
  75. }
  76. }
  77. .ui {
  78. &.left {
  79. float: left;
  80. }
  81. &.right {
  82. float: right;
  83. }
  84. .text {
  85. &.red {
  86. color: #d95c5c!important;
  87. a {
  88. color: #d95c5c!important;
  89. &:hover {
  90. color: #E67777!important;
  91. }
  92. }
  93. }
  94. &.blue {
  95. color: #428bca!important;
  96. a {
  97. color: #15c!important;
  98. &:hover {
  99. color: #428bca!important;
  100. }
  101. }
  102. }
  103. &.grey {
  104. color: #767676!important;
  105. a {
  106. color: #444!important;
  107. &:hover {
  108. color: #000!important;
  109. }
  110. }
  111. }
  112. &.green {
  113. color: #6cc644!important;
  114. }
  115. &.left {
  116. text-align: left!important;
  117. }
  118. &.right {
  119. text-align: right!important;
  120. }
  121. &.small {
  122. font-size: 0.75em;
  123. }
  124. &.truncate {
  125. overflow: hidden;
  126. text-overflow: ellipsis;
  127. white-space: nowrap;
  128. display: inline-block;
  129. }
  130. &.thin {
  131. font-weight: normal;
  132. }
  133. &.middle {
  134. vertical-align: middle;
  135. }
  136. }
  137. .message {
  138. text-align: center;
  139. }
  140. .header > i + .content {
  141. padding-left: 0.75rem;
  142. vertical-align: middle;
  143. }
  144. .warning {
  145. &.header {
  146. background-color: #F9EDBE!important;
  147. border-color: #F0C36D;
  148. }
  149. &.segment {
  150. border-color: #F0C36D;
  151. }
  152. }
  153. .info {
  154. &.header {
  155. background-color: #d9edf7!important;
  156. border-color: #85c5e5;
  157. }
  158. &.segment {
  159. border-color: #85c5e5;
  160. }
  161. }
  162. .normal.header {
  163. font-weight: normal;
  164. }
  165. .avatar.image {
  166. border-radius: 3px;
  167. }
  168. .form {
  169. .fake {
  170. display: none!important;
  171. }
  172. }
  173. }
  174. .overflow.menu {
  175. .items {
  176. max-height: 300px;
  177. overflow-y: auto;
  178. .item {
  179. position: relative;
  180. cursor: pointer;
  181. display: block;
  182. border: none;
  183. height: auto;
  184. border-top: none;
  185. line-height: 1em;
  186. color: rgba(0,0,0,.8);
  187. padding: .71428571em 1.14285714em!important;
  188. font-size: 1rem;
  189. text-transform: none;
  190. font-weight: 400;
  191. box-shadow: none;
  192. -webkit-touch-callout: none;
  193. &.active {
  194. font-weight: 700;
  195. }
  196. &:hover {
  197. background: rgba(0,0,0,.05);
  198. color: rgba(0,0,0,.8);
  199. z-index: 13;
  200. }
  201. }
  202. }
  203. }
  204. footer {
  205. margin-top: @footer-margin+14px!important;
  206. height: @footer-margin;
  207. background-color: white;
  208. border-top: 1px solid #d6d6d6;
  209. clear: both;
  210. width: 100%;
  211. color: #888888;
  212. .container {
  213. padding-top: 10px;
  214. .fa {
  215. width: 16px;
  216. text-align: center;
  217. color: #428bca;
  218. }
  219. .ui.language.dropdown {
  220. z-index: 10000;
  221. }
  222. .links >* {
  223. border-left: 1px solid #d6d6d6;
  224. padding-left: 8px;
  225. margin-left: 5px;
  226. &:first-child {
  227. border-left: none;
  228. }
  229. }
  230. }
  231. }
  232. .hide {
  233. display: none;
  234. }
  235. .center {
  236. text-align: center;
  237. }
  238. .generate-img(16);
  239. .generate-img(@n, @i: 1) when (@i =< @n) {
  240. .img-@{i} {
  241. width: (2px * @i)!important;
  242. height: (2px * @i)!important;
  243. }
  244. .generate-img(@n, (@i + 1));
  245. }
  246. .octicon.icon,
  247. .mega-octicon.icon {
  248. font-family: octicons;
  249. }
  250. // Accessibility
  251. .sr-only {
  252. position: absolute;
  253. width: 1px;
  254. height: 1px;
  255. padding: 0;
  256. margin: -1px;
  257. overflow: hidden;
  258. clip: rect(0, 0, 0, 0);
  259. border: 0;
  260. }
  261. .sr-only-focusable:active,
  262. .sr-only-focusable:focus {
  263. position: static;
  264. width: auto;
  265. height: auto;
  266. margin: 0;
  267. overflow: visible;
  268. clip: auto;
  269. }
  270. @media only screen and (max-width: 991px) and (min-width: 768px) {
  271. .ui.container {
  272. width: 95%;
  273. }
  274. }