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.

301 lines
5.5 KiB

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