Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 

166 řádky
3.1 KiB

  1. @charset "UTF-8";
  2. //
  3. // Scaffolding
  4. // --------------------------------------------------
  5. // Reset the box-sizing
  6. //
  7. // Heads up! This reset may cause conflicts with some third-party widgets.
  8. // For recommendations on resolving such conflicts, see
  9. // http://getbootstrap.com/getting-started/#third-box-sizing
  10. * {
  11. @include box-sizing(border-box);
  12. }
  13. *:before,
  14. *:after {
  15. @include box-sizing(border-box);
  16. }
  17. // Body reset
  18. html {
  19. font-size: 10px;
  20. -webkit-tap-highlight-color: rgba(0,0,0,0);
  21. }
  22. body {
  23. font-family: $font-family-base;
  24. font-size: $font-size-base;
  25. line-height: $line-height-base;
  26. color: $text-color;
  27. background-color: $body-bg;
  28. }
  29. .noscroll {
  30. overflow: hidden;
  31. }
  32. // Reset fonts for relevant elements
  33. input,
  34. button,
  35. select,
  36. textarea {
  37. font-family: inherit;
  38. font-size: inherit;
  39. line-height: inherit;
  40. }
  41. // Links
  42. a {
  43. color: $primary-color;
  44. text-decoration: none;
  45. &:hover,
  46. &:focus {
  47. text-decoration: $link-hover-decoration;
  48. }
  49. &:focus {
  50. @include tab-focus;
  51. }
  52. }
  53. // Figures
  54. //
  55. // We reset this here because previously Normalize had no `figure` margins. This
  56. // ensures we don't break anyone's use of the element.
  57. figure {
  58. margin: 0;
  59. }
  60. // Images
  61. img {
  62. vertical-align: middle;
  63. }
  64. // Responsive images (ensure images don't scale beyond their parents)
  65. .img-responsive {
  66. @include img-responsive;
  67. }
  68. // Rounded corners
  69. .img-rounded {
  70. border-radius: $border-radius-large;
  71. }
  72. // Image thumbnails
  73. //
  74. // Heads up! This is mixin-ed into thumbnails.less for `.thumbnail`.
  75. .img-thumbnail {
  76. padding: $thumbnail-padding;
  77. line-height: $line-height-base;
  78. background-color: $thumbnail-bg;
  79. border: 1px solid $thumbnail-border;
  80. border-radius: $thumbnail-border-radius;
  81. @include transition(all .2s ease-in-out);
  82. // Keep them at most 100% wide
  83. @include img-responsive(inline-block);
  84. }
  85. // Perfect circle
  86. .img-circle {
  87. border-radius: 50%; // set radius in percents
  88. }
  89. // Horizontal rules
  90. hr {
  91. margin-top: $line-height-computed;
  92. margin-bottom: $line-height-computed;
  93. border: 0;
  94. border-top: 1px solid $hr-border;
  95. }
  96. // Only display content to screen readers
  97. //
  98. // See: http://a11yproject.com/posts/how-to-hide-content/
  99. .sr-only {
  100. position: absolute;
  101. width: 1px;
  102. height: 1px;
  103. margin: -1px;
  104. padding: 0;
  105. overflow: hidden;
  106. clip: rect(0,0,0,0);
  107. border: 0;
  108. }
  109. // Use in conjunction with .sr-only to only display content when it's focused.
  110. // Useful for "Skip to main content" links; see http://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1
  111. // Credit: HTML5 Boilerplate
  112. .sr-only-focusable {
  113. &:active,
  114. &:focus {
  115. position: static;
  116. width: auto;
  117. height: auto;
  118. margin: 0;
  119. overflow: visible;
  120. clip: auto;
  121. }
  122. }
  123. // iOS "clickable elements" fix for role="button"
  124. //
  125. // Fixes "clickability" issue (and more generally, the firing of events such as focus as well)
  126. // for traditionally non-focusable elements with role="button"
  127. // see https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile
  128. // Upstream patch for normalize.css submitted: https://github.com/necolas/normalize.css/pull/379 - remove this fix once that is merged
  129. [role="button"] {
  130. cursor: pointer;
  131. }