elegant.less 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. @import "../bootstrap/less/bootstrap.less";
  2. @import "../bootstrap/less/utilities.less";
  3. @import "custom-variables.less";
  4. @import url(http://fonts.googleapis.com/css?family=Open+Sans);
  5. @import url(http://fonts.googleapis.com/css?family=Roboto);
  6. @import url(http://fonts.googleapis.com/css?family=Lora);
  7. @page-header-border-color: #8f8686;
  8. @page-header-color: #8B0000;
  9. @font-family-sans-serif: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  10. @font-family-monospace: Roboto, Menlo, Monaco, Consolas, "Courier New", monospace;
  11. @headings-font-family: Lora, Baskerville, Garamond, Georgia, 'DejaVu Serif', 'Times New Roman', Times, Serif;
  12. .mixin-no-color-no-decoration() {
  13. color: inherit;
  14. text-decoration: none;
  15. }
  16. h1, h2, h3, h4, h5, h6 {
  17. .mixin-no-color-no-decoration;
  18. small {
  19. .mixin-no-color-no-decoration;
  20. }
  21. a {
  22. .mixin-no-color-no-decoration;
  23. &:hover {
  24. .mixin-no-color-no-decoration;
  25. }
  26. &:focus {
  27. .mixin-no-color-no-decoration;
  28. }
  29. }
  30. }
  31. .form-control {
  32. &:extend(.form-control);
  33. border-radius: 15px;
  34. }
  35. .list-of-tags {
  36. font-family: @font-family-sans-serif;
  37. ul& {
  38. list-style: none outside none;
  39. margin: 20px 0 0;
  40. overflow: hidden;
  41. padding: 0;
  42. li {
  43. float: left;
  44. line-height: 2em;
  45. margin: 0;
  46. }
  47. a {
  48. background: @gray-lighter;
  49. border-radius: 3px;
  50. color: #222;
  51. font-size: 1em;
  52. margin: 2px;
  53. padding: 3px 6px;
  54. text-decoration: none;
  55. span {
  56. font-size: .8em;
  57. vertical-align: super;
  58. }
  59. }
  60. }
  61. }
  62. .articles-in-tag {
  63. font-family: @font-family-sans-serif;
  64. ul& {
  65. list-style: none outside none;
  66. margin: 0 0 0 5px;
  67. li {
  68. font-size: 1.1em;
  69. line-height: 1.6em;
  70. time {
  71. color: @gray-light;
  72. display: inline-block;
  73. font-family: @font-family-monospace;
  74. font-size: .9em;
  75. width: 7em;
  76. }
  77. }
  78. }
  79. }
  80. .page-header {
  81. &:extend(.page-header);
  82. color: @page-header-color;
  83. margin-top: 10px;
  84. padding-left: 5px;
  85. }
  86. // footer code is taken from http://getbootstrap.com/examples/sticky-footer-navbar/
  87. html {
  88. min-height: 100%;
  89. position: relative;
  90. }
  91. body {
  92. margin-bottom: @page-footer-height;
  93. }
  94. footer {
  95. align-items: center;
  96. background-color: @page-footer-color;
  97. border-top: @page-footer-border-top;//1px solid rgba(0, 0, 0, .2);
  98. bottom: 0;
  99. display: flex;
  100. height: @page-footer-height;
  101. position: absolute;
  102. width: 100%;
  103. div {
  104. font-family: @font-family-sans-serif;
  105. font-size: 0.8em;
  106. ul {
  107. display: table;
  108. list-style: none;
  109. margin: 0;
  110. padding: 0;
  111. width: 100%;
  112. li {
  113. display: table-cell;
  114. height: 100%;
  115. text-align: left;
  116. &:last-child {
  117. text-align: right;
  118. }
  119. }
  120. }
  121. }
  122. }