logo

searx

My custom branche(s) on searx, a meta-search engine git clone https://hacktivis.me/git/searx.git

type.less (6089B)


  1. //
  2. // Typography
  3. // --------------------------------------------------
  4. // Headings
  5. // -------------------------
  6. h1, h2, h3, h4, h5, h6,
  7. .h1, .h2, .h3, .h4, .h5, .h6 {
  8. font-family: @headings-font-family;
  9. font-weight: @headings-font-weight;
  10. line-height: @headings-line-height;
  11. color: @headings-color;
  12. small,
  13. .small {
  14. font-weight: normal;
  15. line-height: 1;
  16. color: @headings-small-color;
  17. }
  18. }
  19. h1, .h1,
  20. h2, .h2,
  21. h3, .h3 {
  22. margin-top: @line-height-computed;
  23. margin-bottom: (@line-height-computed / 2);
  24. small,
  25. .small {
  26. font-size: 65%;
  27. }
  28. }
  29. h4, .h4,
  30. h5, .h5,
  31. h6, .h6 {
  32. margin-top: (@line-height-computed / 2);
  33. margin-bottom: (@line-height-computed / 2);
  34. small,
  35. .small {
  36. font-size: 75%;
  37. }
  38. }
  39. h1, .h1 { font-size: @font-size-h1; }
  40. h2, .h2 { font-size: @font-size-h2; }
  41. h3, .h3 { font-size: @font-size-h3; }
  42. h4, .h4 { font-size: @font-size-h4; }
  43. h5, .h5 { font-size: @font-size-h5; }
  44. h6, .h6 { font-size: @font-size-h6; }
  45. // Body text
  46. // -------------------------
  47. p {
  48. margin: 0 0 (@line-height-computed / 2);
  49. }
  50. .lead {
  51. margin-bottom: @line-height-computed;
  52. font-size: floor((@font-size-base * 1.15));
  53. font-weight: 300;
  54. line-height: 1.4;
  55. @media (min-width: @screen-sm-min) {
  56. font-size: (@font-size-base * 1.5);
  57. }
  58. }
  59. // Emphasis & misc
  60. // -------------------------
  61. // Ex: (12px small font / 14px base font) * 100% = about 85%
  62. small,
  63. .small {
  64. font-size: floor((100% * @font-size-small / @font-size-base));
  65. }
  66. // Undo browser default styling
  67. cite {
  68. font-style: normal;
  69. }
  70. mark,
  71. .mark {
  72. background-color: @state-warning-bg;
  73. padding: .2em;
  74. }
  75. // Alignment
  76. .text-left { text-align: left; }
  77. .text-right { text-align: right; }
  78. .text-center { text-align: center; }
  79. .text-justify { text-align: justify; }
  80. .text-nowrap { white-space: nowrap; }
  81. // Transformation
  82. .text-lowercase { text-transform: lowercase; }
  83. .text-uppercase { text-transform: uppercase; }
  84. .text-capitalize { text-transform: capitalize; }
  85. // Contextual colors
  86. .text-muted {
  87. color: @text-muted;
  88. }
  89. .text-primary {
  90. .text-emphasis-variant(@brand-primary);
  91. }
  92. .text-success {
  93. .text-emphasis-variant(@state-success-text);
  94. }
  95. .text-info {
  96. .text-emphasis-variant(@state-info-text);
  97. }
  98. .text-warning {
  99. .text-emphasis-variant(@state-warning-text);
  100. }
  101. .text-danger {
  102. .text-emphasis-variant(@state-danger-text);
  103. }
  104. // Contextual backgrounds
  105. // For now we'll leave these alongside the text classes until v4 when we can
  106. // safely shift things around (per SemVer rules).
  107. .bg-primary {
  108. // Given the contrast here, this is the only class to have its color inverted
  109. // automatically.
  110. color: #fff;
  111. .bg-variant(@brand-primary);
  112. }
  113. .bg-success {
  114. .bg-variant(@state-success-bg);
  115. }
  116. .bg-info {
  117. .bg-variant(@state-info-bg);
  118. }
  119. .bg-warning {
  120. .bg-variant(@state-warning-bg);
  121. }
  122. .bg-danger {
  123. .bg-variant(@state-danger-bg);
  124. }
  125. // Page header
  126. // -------------------------
  127. .page-header {
  128. padding-bottom: ((@line-height-computed / 2) - 1);
  129. margin: (@line-height-computed * 2) 0 @line-height-computed;
  130. border-bottom: 1px solid @page-header-border-color;
  131. }
  132. // Lists
  133. // -------------------------
  134. // Unordered and Ordered lists
  135. ul,
  136. ol {
  137. margin-top: 0;
  138. margin-bottom: (@line-height-computed / 2);
  139. ul,
  140. ol {
  141. margin-bottom: 0;
  142. }
  143. }
  144. // List options
  145. // Unstyled keeps list items block level, just removes default browser padding and list-style
  146. .list-unstyled {
  147. padding-left: 0;
  148. list-style: none;
  149. }
  150. // Inline turns list items into inline-block
  151. .list-inline {
  152. .list-unstyled();
  153. margin-left: -5px;
  154. > li {
  155. display: inline-block;
  156. padding-left: 5px;
  157. padding-right: 5px;
  158. }
  159. }
  160. // Description Lists
  161. dl {
  162. margin-top: 0; // Remove browser default
  163. margin-bottom: @line-height-computed;
  164. }
  165. dt,
  166. dd {
  167. line-height: @line-height-base;
  168. }
  169. dt {
  170. font-weight: bold;
  171. }
  172. dd {
  173. margin-left: 0; // Undo browser default
  174. }
  175. // Horizontal description lists
  176. //
  177. // Defaults to being stacked without any of the below styles applied, until the
  178. // grid breakpoint is reached (default of ~768px).
  179. .dl-horizontal {
  180. dd {
  181. &:extend(.clearfix all); // Clear the floated `dt` if an empty `dd` is present
  182. }
  183. @media (min-width: @grid-float-breakpoint) {
  184. dt {
  185. float: left;
  186. width: (@dl-horizontal-offset - 20);
  187. clear: left;
  188. text-align: right;
  189. .text-overflow();
  190. }
  191. dd {
  192. margin-left: @dl-horizontal-offset;
  193. }
  194. }
  195. }
  196. // Misc
  197. // -------------------------
  198. // Abbreviations and acronyms
  199. abbr[title],
  200. // Add data-* attribute to help out our tooltip plugin, per https://github.com/twbs/bootstrap/issues/5257
  201. abbr[data-original-title] {
  202. cursor: help;
  203. border-bottom: 1px dotted @abbr-border-color;
  204. }
  205. .initialism {
  206. font-size: 90%;
  207. text-transform: uppercase;
  208. }
  209. // Blockquotes
  210. blockquote {
  211. padding: (@line-height-computed / 2) @line-height-computed;
  212. margin: 0 0 @line-height-computed;
  213. font-size: @blockquote-font-size;
  214. border-left: 5px solid @blockquote-border-color;
  215. p,
  216. ul,
  217. ol {
  218. &:last-child {
  219. margin-bottom: 0;
  220. }
  221. }
  222. // Note: Deprecated small and .small as of v3.1.0
  223. // Context: https://github.com/twbs/bootstrap/issues/11660
  224. footer,
  225. small,
  226. .small {
  227. display: block;
  228. font-size: 80%; // back to default font-size
  229. line-height: @line-height-base;
  230. color: @blockquote-small-color;
  231. &:before {
  232. content: '\2014 \00A0'; // em dash, nbsp
  233. }
  234. }
  235. }
  236. // Opposite alignment of blockquote
  237. //
  238. // Heads up: `blockquote.pull-right` has been deprecated as of v3.1.0.
  239. .blockquote-reverse,
  240. blockquote.pull-right {
  241. padding-right: 15px;
  242. padding-left: 0;
  243. border-right: 5px solid @blockquote-border-color;
  244. border-left: 0;
  245. text-align: right;
  246. // Account for citation
  247. footer,
  248. small,
  249. .small {
  250. &:before { content: ''; }
  251. &:after {
  252. content: '\00A0 \2014'; // nbsp, em dash
  253. }
  254. }
  255. }
  256. // Quotes
  257. blockquote:before,
  258. blockquote:after {
  259. content: "";
  260. }
  261. // Addresses
  262. address {
  263. margin-bottom: @line-height-computed;
  264. font-style: normal;
  265. line-height: @line-height-base;
  266. }