elementStyles.scss 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  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: none;
  42. background-color: #fff;
  43. color: lighten($color__text--primary, 30%) !important;
  44. transition: background-color 0.2s, border-color 0.2s, filter 0.2s;
  45. outline: none;
  46. &:hover {
  47. background-color: $color__lightgray--primary;
  48. border-color: $color__gray--darker;
  49. }
  50. &:active {
  51. background-color: $color__lightgray--darker;
  52. border-color: $color__gray--darkest;
  53. }
  54. @at-root #{&}--borderless {
  55. color: $color__text--secondary;
  56. border-color: transparent;
  57. }
  58. @at-root #{&}--thin_text {
  59. font-weight: 400;
  60. }
  61. @at-root #{&}--margin {
  62. margin-right: 0.5rem;
  63. }
  64. @at-root #{&}--modal {
  65. float: right;
  66. margin-bottom: 1rem;
  67. &:last-child {
  68. margin-right: 0.5rem;
  69. }
  70. }
  71. @at-root #{&}--color_input {
  72. width: 10rem;
  73. margin-bottom: 1rem;
  74. height: 31px;
  75. padding: 0.25rem;
  76. }
  77. @at-root #{&}--disabled {
  78. position: relative;
  79. pointer-events: none;
  80. @include user-select(none);
  81. &::after {
  82. content: '';
  83. width: 100%;
  84. height: 100%;
  85. position: absolute;
  86. left: 0;
  87. top: 0;
  88. background-color: rgba(240, 240, 240, 0.4);
  89. }
  90. }
  91. @at-root #{&}--orange {
  92. border-color: $color__orange--primary;
  93. &:hover { border-color: $color__orange--darker; }
  94. &:active { border-color: $color__orange--darkest; }
  95. }
  96. @at-root #{&}--lightblue {
  97. border-color: $color__lightblue--primary;
  98. &:hover { border-color: $color__blue--primary; }
  99. &:active { border-color: $color__blue--darker; }
  100. }
  101. @mixin filled_button($background, $border, $text: #fff) {
  102. background-color: $background;
  103. border-color: $border;
  104. color: $text !important;
  105. &:hover {
  106. background-color: darken($background, 5%);
  107. border-color: rgba($border, 0.6);
  108. color: darken(#fff, 5%) !important;
  109. }
  110. &:active {
  111. background-color: darken($background, 10%);
  112. border-color: rgba($border, 0.6);
  113. color: darken(#fff, 10%) !important;
  114. }
  115. }
  116. @at-root #{&}--blue {
  117. @include filled_button(
  118. $color__blue--primary,
  119. $color__blue--darker
  120. );
  121. }
  122. @at-root #{&}--green {
  123. @include filled_button($color__green--primary, $color__green--darker);
  124. }
  125. @at-root #{&}--red {
  126. @include filled_button($color__red--primary, $color__red--darker);
  127. }
  128. }
  129. .input {
  130. border: 1px solid $color__gray--primary;
  131. border-radius: 0.25rem;
  132. @include text;
  133. padding: 0.25rem;
  134. outline: none;
  135. &:hover {
  136. border-color: $color__gray--darker;
  137. }
  138. &:focus {
  139. border-color: $color__gray--darkest;
  140. }
  141. }
  142. .h1 {
  143. @include text($font--role-default, 3rem);
  144. }
  145. .h3 {
  146. @include text($font--role-default, 1.5rem);
  147. font-weight: 500;
  148. @at-root #{&}--margin_top {
  149. margin-top: 1.5rem;
  150. }
  151. }
  152. .p--condensed {
  153. margin-top: 0.25rem;
  154. }
  155. .category_widget {
  156. @at-root #{&}__box {
  157. background-color: #fff;
  158. padding: 1.5rem;
  159. border-radius: 0.25rem;
  160. margin-bottom: 1rem;
  161. @extend .shadow_border;
  162. }
  163. @at-root #{&}__text {
  164. margin-bottom: 1rem;
  165. @at-root #{&}__title {
  166. margin-bottom: 0.5rem;
  167. font-weight: bold;
  168. font-size: 1.25rem;
  169. }
  170. }
  171. }
  172. .overlay_message {
  173. display: flex;
  174. flex-direction: column;
  175. align-items: center;
  176. justify-content: center;
  177. padding-right: 5rem;
  178. font-size: 2rem;
  179. user-select: none;
  180. cursor: default;
  181. transition: none;
  182. color: $color__gray--darkest;
  183. span {
  184. font-size: 4rem;
  185. color: $color__gray--darker;
  186. }
  187. @at-root #{&}__loading {
  188. margin-top: 2rem;
  189. margin-bottom: 0.5rem;
  190. }
  191. }
  192. //Vue transition class
  193. .fade-enter-active, .fade-leave-active {
  194. transition: opacity 0.2s;
  195. }
  196. .fade-enter, .fade-leave-to {
  197. opacity: 0;
  198. }