_classes.scss 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. //
  2. // Utilities
  3. //
  4. %border-box {
  5. -moz-box-sizing: border-box;
  6. box-sizing: border-box;
  7. }
  8. %content-box {
  9. -moz-box-sizing: content-box;
  10. box-sizing: content-box;
  11. }
  12. %user-select-none {
  13. -webkit-user-select: none;
  14. -moz-user-select: -moz-none;
  15. -ms-user-select: none;
  16. user-select: none;
  17. }
  18. %hide-text {
  19. white-space: nowrap;
  20. overflow: hidden;
  21. text-indent: -1000px;
  22. @extend %user-select-none;
  23. }
  24. //
  25. // Boxes
  26. //
  27. %box {
  28. background: $boxBackground;
  29. border: 1px solid $boxBorder;
  30. border-radius: 3px;
  31. }
  32. %heading-box {
  33. background: $boxHeaderBackground;
  34. border: 1px solid $boxBorder;
  35. border-radius: 3px;
  36. }
  37. %block-heading {
  38. line-height: 1.25rem;
  39. margin: 2em 0 1em;
  40. padding: .5em .75em;
  41. font-size: 1rem;
  42. overflow: hidden;
  43. @extend %heading-box;
  44. }
  45. //
  46. // Notes
  47. //
  48. %note {
  49. margin: 1.5rem 0;
  50. padding: .5rem .875rem;
  51. background: $noteBackground;
  52. border: 1px solid $noteBorder;
  53. border-radius: 3px;
  54. }
  55. %label {
  56. margin: 0 1px;
  57. padding: 1px 4px 2px;
  58. background: $labelBackground;
  59. border-radius: 3px;
  60. }
  61. %block-label {
  62. display: block;
  63. line-height: 1.375rem;
  64. margin: 2em 0 1em;
  65. padding-left: .5em;
  66. padding-right: .5em;
  67. font-size: inherit;
  68. border: 1px solid $boxBorder;
  69. border-radius: 2px;
  70. @extend %label;
  71. }
  72. %label-yellow {
  73. background: $noteBackground;
  74. border-color: $noteBorder;
  75. }
  76. %note-green, %label-green {
  77. background: $noteGreenBackground;
  78. border-color: $noteGreenBorder;
  79. }
  80. %note-blue, %label-blue {
  81. background: $noteBlueBackground;
  82. border-color: $noteBlueBorder;
  83. }
  84. %note-orange, %label-orange {
  85. background: $noteOrangeBackground;
  86. border-color: $noteOrangeBorder;
  87. }
  88. %note-red, %label-red {
  89. background: $noteRedBackground;
  90. border-color: $noteRedBorder;
  91. }
  92. //
  93. // External links
  94. //
  95. %external-link {
  96. &:after {
  97. display: inline-block;
  98. width: .5rem;
  99. height: .4375rem;
  100. margin: .125rem 0 0 .0625rem;
  101. vertical-align: top;
  102. @if $style == 'dark' {
  103. @extend %icon, %icon-link-white;
  104. } @else {
  105. @extend %icon, %icon-link;
  106. }
  107. }
  108. }
  109. %internal-link:after { content: none !important; }