scaffolding.less 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. // Rounded corners
  2. .img-rounded {
  3. border-radius: @border-radius-large;
  4. }
  5. // Perfect circle
  6. .img-circle {
  7. border-radius: 50%; // set radius in percents
  8. }
  9. // Horizontal rules
  10. hr {
  11. margin-top: @line-height-computed;
  12. margin-bottom: @line-height-computed;
  13. border: 0;
  14. border-top: 1px solid @hr-border;
  15. }
  16. // Only display content to screen readers
  17. //
  18. // See: https://a11yproject.com/posts/how-to-hide-content
  19. .sr-only {
  20. position: absolute;
  21. width: 1px;
  22. height: 1px;
  23. padding: 0;
  24. margin: -1px;
  25. overflow: hidden;
  26. clip: rect(0, 0, 0, 0);
  27. border: 0;
  28. }
  29. // Use in conjunction with .sr-only to only display content when it's focused.
  30. // Useful for "Skip to main content" links; see https://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1
  31. // Credit: HTML5 Boilerplate
  32. .sr-only-focusable {
  33. &:active,
  34. &:focus {
  35. position: static;
  36. width: auto;
  37. height: auto;
  38. margin: 0;
  39. overflow: visible;
  40. clip: auto;
  41. }
  42. }
  43. // iOS "clickable elements" fix for role="button"
  44. //
  45. // Fixes "clickability" issue (and more generally, the firing of events such as focus as well)
  46. // for traditionally non-focusable elements with role="button"
  47. // see https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile
  48. [role='button'] {
  49. cursor: pointer;
  50. }