elegant.less 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. @import "../bootstrap/less/bootstrap.less";
  2. @import "../bootstrap/less/utilities.less";
  3. @import "custom-variables.less";
  4. @import "custom-classes.less";
  5. .mixin-no-color-no-decoration() {
  6. color: inherit;
  7. text-decoration: none;
  8. }
  9. h1, h2, h3, h4, h5, h6 {
  10. .mixin-no-color-no-decoration;
  11. small {
  12. .mixin-no-color-no-decoration;
  13. }
  14. a {
  15. .mixin-no-color-no-decoration;
  16. &:hover {
  17. .mixin-no-color-no-decoration;
  18. }
  19. &:focus {
  20. .mixin-no-color-no-decoration;
  21. }
  22. &.headerlink { // a.headerlink
  23. color: @gray-light;
  24. padding-left: .5em;
  25. visibility: hidden;
  26. &:hover {
  27. color: inherit;
  28. }
  29. }
  30. }
  31. &:hover > a.headerlink {
  32. visibility: visible;
  33. }
  34. }
  35. .form-control {
  36. &:extend(.form-control);
  37. border-radius: 15px;
  38. }
  39. .navbar-form {
  40. &:extend(.navbar-form);
  41. @media (max-width: @grid-float-breakpoint) {
  42. margin-left: 0;
  43. margin-right: 0;
  44. }
  45. @media (min-width: @screen-sm-min) {
  46. .form-control {
  47. width: 100%;
  48. }
  49. }
  50. }
  51. .navbar-default {
  52. &:extend(.navbar-default);
  53. background-color: @el-navbar-top-background-color;
  54. background-image: @el-navbar-top-background-image;
  55. background-repeat: repeat-x;
  56. border: @el-navbar-top-border;
  57. box-shadow: @el-navbar-top-box-shadow;
  58. }
  59. .list-of-tags {
  60. font-family: @font-family-sans-serif;
  61. ul& {
  62. list-style: none outside none;
  63. margin: 20px 0 0;
  64. overflow: hidden;
  65. padding: 0;
  66. li {
  67. float: left;
  68. line-height: 2em;
  69. margin: 0;
  70. }
  71. a {
  72. background: @gray-lighter;
  73. border-radius: 3px;
  74. color: #222;
  75. font-size: 1em;
  76. margin: 2px;
  77. padding: 3px 6px;
  78. text-decoration: none;
  79. span {
  80. font-size: .8em;
  81. vertical-align: super;
  82. }
  83. }
  84. }
  85. }
  86. .articles-in-tag {
  87. font-family: @font-family-sans-serif;
  88. ul& {
  89. list-style: none outside none;
  90. margin: 0 0 0 5px;
  91. li {
  92. font-size: 1.1em;
  93. line-height: 1.6em;
  94. time {
  95. color: @gray-light;
  96. display: inline-block;
  97. font-family: @font-family-monospace;
  98. font-size: .9em;
  99. width: 7em;
  100. }
  101. }
  102. }
  103. }
  104. .page-header {
  105. &:extend(.page-header);
  106. color: @el-page-header-color;
  107. margin-top: 10px;
  108. padding-left: 5px;
  109. }
  110. // footer code is taken from http://getbootstrap.com/examples/sticky-footer-navbar/
  111. html {
  112. min-height: 100%;
  113. position: relative;
  114. }
  115. body {
  116. margin-bottom: @el-page-footer-height;
  117. @media (max-width: @screen-md) {
  118. margin-bottom: @el-page-footer-height + @el-page-footer-height-subset * 1;
  119. }
  120. @media (max-width: @screen-sm) {
  121. margin-bottom: @el-page-footer-height + @el-page-footer-height-subset * 2;
  122. }
  123. @media (max-width: @screen-xs) {
  124. margin-bottom: @el-page-footer-height + @el-page-footer-height-subset * 3;
  125. }
  126. }
  127. footer {
  128. align-items: center;
  129. background-color: @el-page-footer-color;
  130. border-top: @el-page-footer-border-top;
  131. bottom: 0;
  132. display: flex;
  133. height: @el-page-footer-height;
  134. @media (max-width: @screen-md) {
  135. height: @el-page-footer-height + @el-page-footer-height-subset * 1;
  136. }
  137. @media (max-width: @screen-sm) {
  138. height: @el-page-footer-height + @el-page-footer-height-subset * 2;
  139. }
  140. @media (max-width: @screen-xs) {
  141. height: @el-page-footer-height + @el-page-footer-height-subset * 3;
  142. }
  143. position: absolute;
  144. width: 100%;
  145. div {
  146. font-family: @font-family-sans-serif;
  147. font-size: 0.8em;
  148. text-align: left;
  149. &:only-child {
  150. text-align: right; // if only elegant license is present
  151. }
  152. @media (min-width: @screen-md) {
  153. &:last-child {
  154. text-align: right;
  155. }
  156. }
  157. @media (max-width: @screen-md) {
  158. &:nth-last-child(2), &:nth-last-child(3) {
  159. margin-bottom: 4px;
  160. }
  161. }
  162. }
  163. }