base.less 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. .icon {
  2. &, &-a:after, &-b:before {
  3. font-family: 'icomoon' !important;
  4. font-weight: normal !important;
  5. font-style: normal !important;
  6. display: inline-block;
  7. min-width: 1em;
  8. -webkit-font-smoothing: antialiased;
  9. -moz-osx-font-smoothing: grayscale;
  10. .theme& {
  11. font-family: 'theme' !important;
  12. }
  13. .custom& {
  14. font-family: 'vamtam-custom-icons' !important;
  15. }
  16. }
  17. }
  18. .icon-b:before, .icon-a:after { content: " " attr(data-icon) " "}
  19. .icon-b.size-small:before, .icon-a.size-small:after, .icon.size-small { font-size: 16px }
  20. .icon-b.size-medium:before, .icon-a.size-medium:after, .icon.size-medium { font-size: 24px }
  21. .icon-b.size-large:before, .icon-a.size-large:after, .icon.size-large { font-size: 32px }
  22. .icon-b.icon-a:before { content: " " attr(data-iconb) " "}
  23. .icon-b.icon-a:after { content: " " attr(data-icona) " "}
  24. .icon-b:before { padding-right: .5em }
  25. .icon-a:before { padding-left: .5em }
  26. /**
  27. * html5doctor.com Reset Stylesheet (Eric Meyer's Reset Reloaded + HTML5 baseline)
  28. * v1.6.1 2010-09-17 | Authors: Eric Meyer & Richard Clark
  29. * html5doctor.com/html-5-reset-stylesheet/
  30. */
  31. html, body, div, span, object, iframe,
  32. h1, h2, h3, h4, h5, h6, p, blockquote, pre,
  33. abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp,
  34. small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li,
  35. fieldset, form, label, legend,
  36. table, caption, tbody, tfoot, thead, tr, th, td,
  37. article, aside, canvas, details, figcaption, figure,
  38. footer, header, hgroup, menu, nav, section, summary,
  39. time, mark, audio, video {
  40. margin: 0;
  41. padding: 0;
  42. border: 0;
  43. font-size: 100%;
  44. font: inherit;
  45. vertical-align: baseline;
  46. }
  47. html, body {
  48. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  49. -webkit-text-size-adjust: 100%;
  50. -webkit-overflow-scrolling: touch;
  51. }
  52. article, aside, details, figcaption, figure,
  53. footer, header, hgroup, menu, nav, section {
  54. display: block;
  55. }
  56. blockquote, q { quotes: none; }
  57. blockquote:after,
  58. q:before, q:after { content: ""; content: none; }
  59. ins { color: var( --vamtam-accent-color-2 ); text-decoration: none; }
  60. mark { background-color: #ff9; color: #000; font-style: italic; font-weight: bold; }
  61. del { text-decoration: line-through; }
  62. abbr[title], dfn[title] { border-bottom: 1px dotted; cursor: help; }
  63. table { border-collapse: collapse; border-spacing: 0; }
  64. hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }
  65. input, select { vertical-align: middle; }
  66. /**
  67. * Font normalization inspired by YUI Library's fonts.css: developer.yahoo.com/yui/
  68. */
  69. body { font:13px/1.231 sans-serif; *font-size:small; } /* Hack retained to preserve specificity */
  70. select, input, textarea, button { font:99% sans-serif; }
  71. /* Normalize monospace sizing:
  72. en.wikipedia.org/wiki/MediaWiki_talk:Common.css/Archive_11#Teletype_style_fix_for_Chrome */
  73. pre, code, kbd, samp { font-family: monospace, sans-serif; }
  74. :disabled { cursor: not-allowed; }
  75. /**
  76. * Minimal base styles.
  77. */
  78. /* Accessible focus treatment: people.opera.com/patrickl/experiments/keyboard/test */
  79. a:hover, a:active { outline: none; }
  80. /* Remove margins for navigation lists */
  81. nav ul, nav li { margin: 0; list-style:none; list-style-image: none; }
  82. small { font-size: 85%; }
  83. b, strong, th { font-weight: bold; }
  84. td { vertical-align: top; }
  85. /* Set sub, sup without affecting line-height: gist.github.com/413930 */
  86. sub, sup { font-size: 75%; line-height: 0; position: relative; }
  87. sup { top: -0.5em; }
  88. sub { bottom: -0.25em; }
  89. pre {
  90. /* www.pathf.com/blogs/2008/05/formatting-quoted-code-in-blog-posts-css21-white-space-pre-wrap/ */
  91. white-space: pre; white-space: pre-wrap; word-wrap: break-word;
  92. padding: 15px;
  93. }
  94. textarea { overflow: auto; } /* www.sitepoint.com/blogs/2010/08/20/ie-remove-textarea-scrollbars/ */
  95. /* Align checkboxes, radios, text inputs with their label by: Thierry Koblentz tjkdesign.com/ez-css/css/base.css */
  96. input[type="radio"] { vertical-align: text-bottom; }
  97. input[type="checkbox"] { vertical-align: middle; }
  98. /* Hand cursor on clickable input elements */
  99. label, input[type="button"], input[type="submit"], input[type="image"], button { cursor: pointer; }
  100. button, input, select, textarea {
  101. /* Webkit browsers add a 2px margin outside the chrome of form elements */
  102. margin: 0;
  103. box-shadow: none;
  104. border-radius: 0;
  105. }
  106. button {
  107. padding: 0;
  108. }
  109. button, input[type="button"], input[type="submit"] {
  110. -webkit-appearance: none;
  111. background-image: none;
  112. }
  113. /* Make buttons play nice in IE:
  114. www.viget.com/inspire/styling-the-button-element-in-internet-explorer/ */
  115. button { width: auto; overflow: visible; }
  116. select, input, textarea { color: #444; }
  117. /* For image replacement */
  118. .ir { display: block; text-indent: -999em; overflow: hidden; background-repeat: no-repeat; text-align: left; direction: ltr; }
  119. /* Hide for both screenreaders and browsers:
  120. css-discuss.incutio.com/wiki/Screenreader_Visibility */
  121. .hidden { display: none; visibility: hidden; }
  122. /* Hide only visually, but have it available for screenreaders: by Jon Neal.
  123. www.webaim.org/techniques/css/invisiblecontent/ & j.mp/visuallyhidden */
  124. .screen-reader-text, .visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
  125. /* Extends the .visuallyhidden class to allow the element to be focusable when navigated to via the keyboard: drupal.org/node/897638 */
  126. .visuallyhidden.focusable:active,
  127. .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }
  128. /* Hide visually and from screenreaders, but maintain layout */
  129. .invisible { visibility: hidden; }
  130. html.no-js .nojs-hide { display: none }
  131. a[href^=tel] { color: inherit; text-decoration: none; font-size: inherit; font-weight: inherit }