elementStyles.scss 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. @import './variables.scss';
  2. body {
  3. background-color: rgba(245, 245, 245, 0.5);
  4. }
  5. pre {
  6. background-color: $color__gray--primary;
  7. padding: 0.5rem;
  8. }
  9. a {
  10. font-weight: 700;
  11. color: $color__darkgray--darker;
  12. position: relative;
  13. background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkqAcAAIUAgUW0RjgAAAAASUVORK5CYII=) repeat-x 100% 100%;
  14. text-decoration: none;
  15. &:hover, &:visited {
  16. color: $color__darkgray--primary;
  17. }
  18. &:active {
  19. color: $color__darkgray--darker;
  20. }
  21. }
  22. blockquote {
  23. background-color: $color__gray--primary;
  24. border-left: thick solid $color__gray--darkest;
  25. & * {
  26. padding: 0.5rem;
  27. }
  28. }
  29. b, strong {
  30. font-weight: 700;
  31. }
  32. .button {
  33. border: 1px solid $color__gray--primary;
  34. display: inline-block;
  35. border-radius: 0.25rem;
  36. text-align: center;
  37. @include text($font--role-default, 1rem, bold);
  38. padding: 0.5rem;
  39. cursor: pointer;
  40. letter-spacing: 0.25px;
  41. background-color: #fff;
  42. color: lighten($color__text--primary, 30%);
  43. transition: background-color 0.2s, border-color 0.2s, filter 0.2s;
  44. outline: none;
  45. &:hover {
  46. background-color: $color__lightgray--primary;
  47. border-color: $color__gray--darker;
  48. }
  49. &:active {
  50. background-color: $color__lightgray--darker;
  51. border-color: $color__gray--darkest;
  52. }
  53. @at-root #{&}__icon {
  54. }
  55. @at-root #{&}--borderless {
  56. color: $color__text--secondary;
  57. border-color: transparent;
  58. }
  59. @at-root #{&}--thick_border_thin_text {
  60. border-width: 0.125rem;
  61. font-weight: 400;
  62. }
  63. @at-root #{&}--margin {
  64. margin-right: 0.5rem;
  65. }
  66. @at-root #{&}--modal {
  67. float: right;
  68. margin-bottom: 1rem;
  69. &:last-child {
  70. margin-right: 0.5rem;
  71. }
  72. }
  73. @at-root #{&}--color_input {
  74. width: 10rem;
  75. margin-bottom: 1rem;
  76. height: 31px;
  77. padding: 0.25rem;
  78. }
  79. @at-root #{&}--disabled {
  80. position: relative;
  81. pointer-events: none;
  82. @include user-select(none);
  83. &::after {
  84. content: '';
  85. width: 100%;
  86. height: 100%;
  87. position: absolute;
  88. left: 0;
  89. top: 0;
  90. background-color: rgba(240, 240, 240, 0.4);
  91. }
  92. }
  93. @at-root #{&}--orange {
  94. border-color: $color__orange--primary;
  95. &:hover { border-color: $color__orange--darker; }
  96. &:active { border-color: $color__orange--darkest; }
  97. }
  98. @at-root #{&}--lightblue {
  99. border-color: $color__lightblue--primary;
  100. &:hover { border-color: $color__blue--primary; }
  101. &:active { border-color: $color__blue--darker; }
  102. }
  103. @mixin filled_button($background, $border, $text: #fff) {
  104. background-color: $background;
  105. border-color: $border;
  106. color: $text;
  107. &:hover {
  108. background-color: darken($background, 5%);
  109. border-color: rgba($border, 0.6);
  110. color: darken(#fff, 5%);
  111. }
  112. &:active {
  113. background-color: darken($background, 10%);
  114. border-color: rgba($border, 0.6);
  115. color: darken(#fff, 10%);
  116. }
  117. }
  118. @at-root #{&}--blue {
  119. @include filled_button(
  120. $color__blue--primary,
  121. $color__blue--darker
  122. );
  123. }
  124. @at-root #{&}--green {
  125. @include filled_button($color__green--primary, $color__green--darker);
  126. }
  127. @at-root #{&}--red {
  128. @include filled_button($color__red--primary, $color__red--darker);
  129. }
  130. }
  131. .input {
  132. border: 0.125rem solid $color__gray--primary;
  133. border-radius: 0.25rem;
  134. @include text;
  135. padding: 0.25rem;
  136. outline: none;
  137. &:hover {
  138. border-color: $color__gray--darker;
  139. }
  140. &:focus {
  141. border-color: $color__gray--darkest;
  142. }
  143. }
  144. .h1 {
  145. @include text($font--role-default, 3rem);
  146. }
  147. .h3 {
  148. @include text($font--role-default, 1.5rem);
  149. font-weight: 500;
  150. @at-root #{&}--margin_top {
  151. margin-top: 1.5rem;
  152. }
  153. }
  154. .p--condensed {
  155. margin-top: 0.25rem;
  156. }
  157. .category_widget {
  158. @at-root #{&}__box {
  159. background-color: #fff;
  160. padding: 1.5rem;
  161. border-radius: 0.25rem;
  162. margin-bottom: 1rem;
  163. @extend .shadow_border;
  164. }
  165. @at-root #{&}__text {
  166. margin-bottom: 1rem;
  167. @at-root #{&}__title {
  168. margin-bottom: 0.5rem;
  169. font-weight: bold;
  170. font-size: 1.25rem;
  171. }
  172. }
  173. }