_base.less 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  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. .full.height {
  10. padding: 0;
  11. margin: 0 0 -@footer-margin*2 0;
  12. min-height: 100%;
  13. }
  14. .following.bar {
  15. z-index: 900;
  16. left: 0;
  17. width: 100%;
  18. &.light {
  19. background-color: white;
  20. border-bottom: 1px solid #DDDDDD;
  21. box-shadow: 0 2px 3px rgba(0, 0, 0, 0.04);
  22. }
  23. .column .menu {
  24. margin-top: 0;
  25. }
  26. .top.menu a.item.brand {
  27. padding-left: 0;
  28. }
  29. .brand .ui.mini.image {
  30. width: 30px;
  31. }
  32. .top.menu a.item:hover,
  33. .top.menu .dropdown.item:hover,
  34. .top.menu .dropdown.item.active {
  35. background-color: transparent;
  36. }
  37. .top.menu a.item:hover {
  38. color: rgba(0,0,0,.45);
  39. }
  40. .top.menu .menu {
  41. z-index: 900;
  42. }
  43. .head.link.item {
  44. padding-right: 0!important;
  45. .dropdown.icon,
  46. .menu .octicon {
  47. margin-right: 5px;
  48. }
  49. }
  50. .avatar > .ui.image {
  51. margin-right: 0;
  52. }
  53. .searchbox {
  54. background-color: rgb(244, 244, 244)!important;
  55. &:focus {
  56. background-color: rgb(233, 233, 233)!important;
  57. }
  58. }
  59. .octicon {
  60. width: 16px;
  61. text-align: center;
  62. }
  63. }
  64. .ui {
  65. &.left {
  66. float: left;
  67. }
  68. &.right {
  69. float: right;
  70. }
  71. .text {
  72. &.red {
  73. color: #d95c5c!important;
  74. a {
  75. color: #d95c5c!important;
  76. &:hover {
  77. color: #E67777!important;
  78. }
  79. }
  80. }
  81. &.blue {
  82. color: #428bca!important;
  83. a {
  84. color: #15c!important;
  85. &:hover {
  86. color: #428bca!important;
  87. }
  88. }
  89. }
  90. &.grey {
  91. color: #767676!important;
  92. a {
  93. color: #444!important;
  94. &:hover {
  95. color: #000!important;
  96. }
  97. }
  98. }
  99. &.green {
  100. color: #6cc644!important;
  101. }
  102. &.left {
  103. text-align: left!important;
  104. }
  105. &.right {
  106. text-align: right!important;
  107. }
  108. &.small {
  109. font-size: 0.75em;
  110. }
  111. &.truncate {
  112. overflow: hidden;
  113. text-overflow: ellipsis;
  114. white-space: nowrap;
  115. display: inline-block;
  116. }
  117. &.thin {
  118. font-weight: normal;
  119. }
  120. }
  121. .message {
  122. text-align: center;
  123. }
  124. .header > i + .content {
  125. padding-left: 0.75rem;
  126. vertical-align: middle;
  127. }
  128. .warning {
  129. &.header {
  130. background-color: #F9EDBE!important;
  131. border-color: #F0C36D;
  132. }
  133. &.segment {
  134. border-color: #F0C36D;
  135. }
  136. }
  137. .info {
  138. &.header {
  139. background-color: #d9edf7!important;
  140. border-color: #85c5e5;
  141. }
  142. &.segment {
  143. border-color: #85c5e5;
  144. }
  145. }
  146. .normal.header {
  147. font-weight: normal;
  148. }
  149. .avatar.image {
  150. border-radius: 3px;
  151. }
  152. .form {
  153. .fake {
  154. display: none!important;
  155. }
  156. }
  157. }
  158. .overflow.menu {
  159. .items {
  160. max-height: 300px;
  161. overflow-y: auto;
  162. .item {
  163. position: relative;
  164. cursor: pointer;
  165. display: block;
  166. border: none;
  167. height: auto;
  168. border-top: none;
  169. line-height: 1em;
  170. color: rgba(0,0,0,.8);
  171. padding: .71428571em 1.14285714em!important;
  172. font-size: 1rem;
  173. text-transform: none;
  174. font-weight: 400;
  175. box-shadow: none;
  176. -webkit-touch-callout: none;
  177. &.active {
  178. font-weight: 700;
  179. }
  180. &:hover {
  181. background: rgba(0,0,0,.05);
  182. color: rgba(0,0,0,.8);
  183. z-index: 13;
  184. }
  185. }
  186. }
  187. }
  188. footer {
  189. margin-top: @footer-margin+14px!important;
  190. height: @footer-margin;
  191. background-color: white;
  192. border-top: 1px solid #d6d6d6;
  193. clear: both;
  194. width: 100%;
  195. color: #888888;
  196. .container {
  197. padding-top: 10px;
  198. .fa {
  199. width: 16px;
  200. text-align: center;
  201. color: #428bca;
  202. }
  203. .ui.language.dropdown {
  204. z-index: 10000;
  205. }
  206. .links >* {
  207. border-left: 1px solid #d6d6d6;
  208. padding-left: 8px;
  209. margin-left: 5px;
  210. &:first-child {
  211. border-left: none;
  212. }
  213. }
  214. }
  215. }
  216. .hide {
  217. display: none;
  218. }
  219. .center {
  220. text-align: center;
  221. }
  222. .generate-img(16);
  223. .generate-img(@n, @i: 1) when (@i =< @n) {
  224. .img-@{i} {
  225. width: (2px * @i)!important;
  226. height: (2px * @i)!important;
  227. }
  228. .generate-img(@n, (@i + 1));
  229. }
  230. .octicon.icon,
  231. .mega-octicon.icon {
  232. font-family: octicons;
  233. }
  234. // Accessibility
  235. .sr-only {
  236. position: absolute;
  237. width: 1px;
  238. height: 1px;
  239. padding: 0;
  240. margin: -1px;
  241. overflow: hidden;
  242. clip: rect(0, 0, 0, 0);
  243. border: 0;
  244. }
  245. .sr-only-focusable:active,
  246. .sr-only-focusable:focus {
  247. position: static;
  248. width: auto;
  249. height: auto;
  250. margin: 0;
  251. overflow: visible;
  252. clip: auto;
  253. }
  254. @media only screen and (max-width: 991px) and (min-width: 768px) {
  255. .ui.container {
  256. width: 95%;
  257. }
  258. }