elegant.less 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  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. .navbar-form {
  36. &:extend(.navbar-form);
  37. @media (max-width: @grid-float-breakpoint) {
  38. margin-left: 0;
  39. margin-right: 0;
  40. }
  41. }
  42. .list-of-tags {
  43. font-family: @font-family-sans-serif;
  44. ul& {
  45. list-style: none outside none;
  46. margin: 20px 0 0;
  47. overflow: hidden;
  48. padding: 0;
  49. li {
  50. float: left;
  51. line-height: 2em;
  52. margin: 0;
  53. }
  54. a {
  55. background: @gray-lighter;
  56. border-radius: 3px;
  57. color: #222;
  58. font-size: 1em;
  59. margin: 2px;
  60. padding: 3px 6px;
  61. text-decoration: none;
  62. span {
  63. font-size: .8em;
  64. vertical-align: super;
  65. }
  66. }
  67. }
  68. }
  69. .articles-in-tag {
  70. font-family: @font-family-sans-serif;
  71. ul& {
  72. list-style: none outside none;
  73. margin: 0 0 0 5px;
  74. li {
  75. font-size: 1.1em;
  76. line-height: 1.6em;
  77. time {
  78. color: @gray-light;
  79. display: inline-block;
  80. font-family: @font-family-monospace;
  81. font-size: .9em;
  82. width: 7em;
  83. }
  84. }
  85. }
  86. }
  87. .page-header {
  88. &:extend(.page-header);
  89. color: @page-header-color;
  90. margin-top: 10px;
  91. padding-left: 5px;
  92. }
  93. // footer code is taken from http://getbootstrap.com/examples/sticky-footer-navbar/
  94. html {
  95. min-height: 100%;
  96. position: relative;
  97. }
  98. body {
  99. margin-bottom: @page-footer-height;
  100. @media (max-width: @screen-md) {
  101. margin-bottom: @page-footer-height + @page-footer-height-subset * 1;
  102. }
  103. @media (max-width: @screen-sm) {
  104. margin-bottom: @page-footer-height + @page-footer-height-subset * 2;
  105. }
  106. @media (max-width: @screen-xs) {
  107. margin-bottom: @page-footer-height + @page-footer-height-subset * 3;
  108. }
  109. }
  110. footer {
  111. align-items: center;
  112. background-color: @page-footer-color;
  113. border-top: @page-footer-border-top;//1px solid rgba(0, 0, 0, .2);
  114. bottom: 0;
  115. display: flex;
  116. height: @page-footer-height;
  117. @media (max-width: @screen-md) {
  118. height: @page-footer-height + @page-footer-height-subset * 1;
  119. }
  120. @media (max-width: @screen-sm) {
  121. height: @page-footer-height + @page-footer-height-subset * 2;
  122. }
  123. @media (max-width: @screen-xs) {
  124. height: @page-footer-height + @page-footer-height-subset * 3;
  125. }
  126. position: absolute;
  127. width: 100%;
  128. div {
  129. font-family: @font-family-sans-serif;
  130. font-size: 0.8em;
  131. text-align: left;
  132. &:only-child {
  133. text-align: right; // if only elegant license is present
  134. }
  135. @media (min-width: @screen-md) {
  136. &:last-child {
  137. text-align: right;
  138. }
  139. }
  140. @media (max-width: @screen-md) {
  141. &:nth-last-child(2), &:nth-last-child(3) {
  142. margin-bottom: 4px;
  143. }
  144. }
  145. }
  146. }