You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

134 lines
2.2 KiB

  1. //
  2. // Scaffolding
  3. // --------------------------------------------------
  4. // Reset the box-sizing
  5. //
  6. // Heads up! This reset may cause conflicts with some third-party widgets.
  7. // For recommendations on resolving such conflicts, see
  8. // http://getbootstrap.com/getting-started/#third-box-sizing
  9. * {
  10. .box-sizing(border-box);
  11. }
  12. *:before,
  13. *:after {
  14. .box-sizing(border-box);
  15. }
  16. // Body reset
  17. html {
  18. font-size: 62.5%;
  19. -webkit-tap-highlight-color: rgba(0,0,0,0);
  20. }
  21. body {
  22. font-family: @font-family-base;
  23. font-size: @font-size-base;
  24. line-height: @line-height-base;
  25. color: @text-color;
  26. background-color: @body-bg;
  27. }
  28. // Reset fonts for relevant elements
  29. input,
  30. button,
  31. select,
  32. textarea {
  33. font-family: inherit;
  34. font-size: inherit;
  35. line-height: inherit;
  36. }
  37. // Links
  38. a {
  39. color: @link-color;
  40. text-decoration: none;
  41. &:hover,
  42. &:focus {
  43. color: @link-hover-color;
  44. text-decoration: underline;
  45. }
  46. &:focus {
  47. .tab-focus();
  48. }
  49. }
  50. // Figures
  51. //
  52. // We reset this here because previously Normalize had no `figure` margins. This
  53. // ensures we don't break anyone's use of the element.
  54. figure {
  55. margin: 0;
  56. }
  57. // Images
  58. img {
  59. vertical-align: middle;
  60. }
  61. // Responsive images (ensure images don't scale beyond their parents)
  62. .img-responsive {
  63. .img-responsive();
  64. }
  65. // Rounded corners
  66. .img-rounded {
  67. border-radius: @border-radius-large;
  68. }
  69. // Image thumbnails
  70. //
  71. // Heads up! This is mixin-ed into thumbnails.less for `.thumbnail`.
  72. .img-thumbnail {
  73. padding: @thumbnail-padding;
  74. line-height: @line-height-base;
  75. background-color: @thumbnail-bg;
  76. border: 1px solid @thumbnail-border;
  77. border-radius: @thumbnail-border-radius;
  78. .transition(all .2s ease-in-out);
  79. // Keep them at most 100% wide
  80. .img-responsive(inline-block);
  81. }
  82. // Perfect circle
  83. .img-circle {
  84. border-radius: 50%; // set radius in percents
  85. }
  86. // Horizontal rules
  87. hr {
  88. margin-top: @line-height-computed;
  89. margin-bottom: @line-height-computed;
  90. border: 0;
  91. border-top: 1px solid @hr-border;
  92. }
  93. // Only display content to screen readers
  94. //
  95. // See: http://a11yproject.com/posts/how-to-hide-content/
  96. .sr-only {
  97. position: absolute;
  98. width: 1px;
  99. height: 1px;
  100. margin: -1px;
  101. padding: 0;
  102. overflow: hidden;
  103. clip: rect(0,0,0,0);
  104. border: 0;
  105. }