base.less 5.2 KB

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