base.less 5.3 KB

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