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.

base.less 5.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  1. @import "../ui/var";
  2. @headerBgColor: #428BCA;
  3. @headerLinkFontColor: #FFF;
  4. @headerLinkHoverColor: #fff65f;
  5. @headerLinkCurrentColor: #fff65f;
  6. @headerSignOutColor: #ff908b;
  7. @footerBorderColor: #D6D6D6;
  8. @footerFontColor: #888;
  9. @langNum: 2px;
  10. // means 2 items
  11. html,
  12. body {
  13. height: 100%;
  14. }
  15. .octicon,
  16. .fa {
  17. width: 16px;
  18. text-align: center;
  19. }
  20. .fa {
  21. font-size: 14px;
  22. }
  23. .container {
  24. max-width: 1170px;
  25. padding: 0 1.5em;
  26. margin: auto;
  27. }
  28. img.avatar-16 {
  29. width: 16px;
  30. height: 16px;
  31. vertical-align: middle;
  32. }
  33. img.avatar-20 {
  34. width: 20px;
  35. height: 20px;
  36. vertical-align: middle;
  37. }
  38. img.avatar-24 {
  39. width: 24px;
  40. height: 24px;
  41. vertical-align: middle;
  42. }
  43. img.avatar-30 {
  44. width: 30px;
  45. height: 30px;
  46. vertical-align: middle;
  47. }
  48. img.avatar-40 {
  49. width: 40px;
  50. height: 40px;
  51. vertical-align: middle;
  52. }
  53. img.avatar-48{
  54. width: 48px;
  55. height: 48px;
  56. vertical-align: middle;
  57. }
  58. img.avatar-100{
  59. width: 100px;
  60. height: 100px;
  61. vertical-align: middle;
  62. }
  63. .drop-down{
  64. .panel-header{
  65. font-size: 14px;
  66. }
  67. }
  68. #wrapper {
  69. padding: 0;
  70. margin: 0 0 -55px 0;
  71. min-height: 100%;
  72. }
  73. #footer {
  74. background-color: white;
  75. border-top: 1px solid@footerBorderColor;
  76. clear: both;
  77. width: 100%;
  78. .container {
  79. padding: 15px;
  80. }
  81. color:@footerFontColor;
  82. .official,
  83. .version {
  84. color: @footerFontColor;
  85. }
  86. }
  87. #footer-links {
  88. > * {
  89. border-left: 1px solid@footerBorderColor;
  90. padding-left: 8px;
  91. margin-left: 5px;
  92. &:first-child {
  93. border-left: none;
  94. }
  95. }
  96. }
  97. #footer-lang {
  98. position: relative;
  99. .drop-down {
  100. top: -2-31*@langNum;
  101. left: -2px;
  102. position: absolute;
  103. height: -3+31*@langNum;
  104. z-index: 100;
  105. font-size: 12px;
  106. width: 120%;
  107. li > a {
  108. padding: 3px 9px;
  109. }
  110. }
  111. }
  112. #header {
  113. background-color: @headerBgColor;
  114. height: 44px;
  115. > .menu-line {
  116. > li > a {
  117. display: inline-block;
  118. color:@headerLinkFontColor;
  119. &:hover {
  120. background-color: transparent;
  121. color: @headerLinkHoverColor;
  122. }
  123. }
  124. > li.head {
  125. color: @headerLinkFontColor;
  126. }
  127. > li.hover a:after {
  128. bottom: -9px;
  129. color: @headerLinkFontColor;
  130. }
  131. > li.current > a {
  132. color: @headerLinkCurrentColor;
  133. font-weight: bold;
  134. }
  135. }
  136. }
  137. #header-nav-user {
  138. height: 44px;
  139. img {
  140. margin: -4px 10px 0 0;
  141. border-radius: 3px;
  142. }
  143. }
  144. #header-nav-sign-out > a:hover {
  145. color: @headerSignOutColor !important;
  146. }
  147. #header-nav-logo {
  148. padding: 6px 1.2em;
  149. }
  150. #header-nav-explore,
  151. #header-nav-help {
  152. font-size: 14px;
  153. }
  154. #header-new-repo-menu {
  155. width: 180px;
  156. background-color: #FFF;
  157. top: 44px;
  158. border-top: none;
  159. .octicon {
  160. margin-right: 6px;
  161. font-size: 1.1em;
  162. }
  163. left:-66px;
  164. }
  165. .switching-list {
  166. width: 100%;
  167. list-style: none;
  168. > li {
  169. border-bottom: 1px solid #eaeaea;
  170. &:last-child {
  171. border-bottom: none;
  172. }
  173. > a {
  174. padding: .4em 1.2em;
  175. display: block;
  176. color: #444;
  177. &:hover {
  178. background-color: #428bca !important;
  179. color: #fff !important;
  180. }
  181. }
  182. }
  183. }
  184. .social-buttons {
  185. .btn {
  186. border: none;
  187. font-size: 16px;
  188. border-radius: 4px;
  189. margin-right: 12px;
  190. font-family: 'PT Sans Narrow', sans-serif;
  191. padding: 5px 12px;
  192. color: #FFF;
  193. .fa {
  194. margin-right: 6px;
  195. font-size: 16px;
  196. }
  197. }
  198. .twitter {
  199. background-color: #1c6399;
  200. &:hover {
  201. background-color: #1c5487;
  202. }
  203. }
  204. .github {
  205. background-color: #444;
  206. &:hover {
  207. background-color: #333;
  208. }
  209. }
  210. .google {
  211. background-color: #C03D20;
  212. &:hover {
  213. background-color: #D56060;
  214. }
  215. }
  216. .weibo {
  217. background-color: #bf1324;
  218. &:hover {
  219. background-color: #b94c4a;
  220. }
  221. }
  222. .qq {
  223. background-color: #03a2ef;
  224. &:hover {
  225. background-color: #3cb3ff;
  226. }
  227. }
  228. }
  229. .main-wrapper {
  230. padding: 20px 0 40px;
  231. }
  232. .user-list {
  233. width: auto;
  234. min-width: 180px;
  235. max-width: 300px;
  236. img {
  237. width: 28px;
  238. height: 28px;
  239. margin-right: 1em;
  240. margin-top: 1px;
  241. vertical-align: middle;
  242. }
  243. li {
  244. cursor: pointer;
  245. font-weight: bold;
  246. }
  247. }
  248. .text-success {
  249. color: #3c763d;
  250. }
  251. .text-blue {
  252. color: #15c;
  253. }
  254. .text-red {
  255. color: #DD4B39;
  256. }
  257. .text-grey {
  258. color: #999999;
  259. }
  260. .text-black {
  261. color: #444444;
  262. }
  263. .table {
  264. width: 100%;
  265. max-width: 100%;
  266. > thead > tr > th,
  267. > tbody > tr > th,
  268. > tfoot > tr > th,
  269. > thead > tr > td,
  270. > tbody > tr > td,
  271. > tfoot > tr > td {
  272. border-top: 1px solid #e7eaec;
  273. line-height: 1.42857;
  274. padding: 8px;
  275. vertical-align: top;
  276. }
  277. th {
  278. text-align: left;
  279. }
  280. }
  281. .table-striped {
  282. >tbody>tr:nth-child(odd)>td,
  283. >tbody>tr:nth-child(odd)>th {
  284. background-color: #f9f9f9;
  285. }
  286. }
  287. .pagination {
  288. display: inline-block;
  289. padding-left: 0;
  290. margin: 20px 0;
  291. border-radius: 4px;
  292. li {
  293. display: inline;
  294. }
  295. }