_base.less 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. .hide {
  65. display: none;
  66. }
  67. .generate-img(16);
  68. .generate-img(@n, @i: 1) when (@i =< @n) {
  69. .img-@{i} {
  70. width: (2px * @i);
  71. height: (2px * @i);
  72. }
  73. .generate-img(@n, (@i + 1));
  74. }
  75. // Accessibility
  76. .sr-only {
  77. position: absolute;
  78. width: 1px;
  79. height: 1px;
  80. padding: 0;
  81. margin: -1px;
  82. overflow: hidden;
  83. clip: rect(0, 0, 0, 0);
  84. border: 0;
  85. }
  86. .sr-only-focusable:active,
  87. .sr-only-focusable:focus {
  88. position: static;
  89. width: auto;
  90. height: auto;
  91. margin: 0;
  92. overflow: visible;
  93. clip: auto;
  94. }