_base.less 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. @footer-margin: 40px;
  2. body {
  3. font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif,'微软雅黑';
  4. background-color: #FFFFFF;
  5. }
  6. .full.height {
  7. padding: 0;
  8. margin: 0 0 -87px 0;
  9. min-height: 100%;
  10. }
  11. .following.bar {
  12. z-index: 900;
  13. left: 0;
  14. width: 100%;
  15. padding: 0.7em 0;
  16. &.light {
  17. background-color: #FFFFFF;
  18. border-bottom: 1px solid #DDDDDD;
  19. box-shadow: 0 2px 3px rgba(0, 0, 0, 0.04);
  20. }
  21. .column .menu {
  22. margin-top: 0;
  23. }
  24. .brand {
  25. float: left;
  26. margin-right: 5px;
  27. }
  28. .searchbox {
  29. background-color: rgb(244, 244, 244)!important;
  30. &:focus {
  31. background-color: rgb(233, 233, 233)!important;
  32. }
  33. }
  34. }
  35. footer {
  36. margin-top: @footer-margin!important;
  37. background-color: white;
  38. border-top: 1px solid #d6d6d6;
  39. clear: both;
  40. width: 100%;
  41. color: #888888;
  42. .ui {
  43. &.left {
  44. float: left;
  45. }
  46. &.right {
  47. float: right;
  48. }
  49. }
  50. .fa {
  51. width: 16px;
  52. text-align: center;
  53. color: #428bca;
  54. }
  55. .links >* {
  56. border-left: 1px solid #d6d6d6;
  57. padding-left: 8px;
  58. margin-left: 5px;
  59. &:first-child {
  60. border-left: none;
  61. }
  62. }
  63. }
  64. .generate-img(16);
  65. .generate-img(@n, @i: 1) when (@i =< @n) {
  66. .img-@{i} {
  67. width: (2px * @i);
  68. height: (2px * @i);
  69. }
  70. .generate-img(@n, (@i + 1));
  71. }
  72. // Accessibility
  73. .sr-only {
  74. position: absolute;
  75. width: 1px;
  76. height: 1px;
  77. padding: 0;
  78. margin: -1px;
  79. overflow: hidden;
  80. clip: rect(0, 0, 0, 0);
  81. border: 0;
  82. }
  83. .sr-only-focusable:active,
  84. .sr-only-focusable:focus {
  85. position: static;
  86. width: auto;
  87. height: auto;
  88. margin: 0;
  89. overflow: visible;
  90. clip: auto;
  91. }