elementStyles.scss 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  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--darker;
  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--darkest;
  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. @media (max-width: 420px) {
  130. .button {
  131. user-select: none;
  132. }
  133. }
  134. .input {
  135. border: 1px solid $color__gray--darker;
  136. border-radius: 0.25rem;
  137. @include text;
  138. padding: 0.25rem;
  139. outline: none;
  140. &:hover, &: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. }
  174. .overlay_message {
  175. display: flex;
  176. flex-direction: column;
  177. align-items: center;
  178. justify-content: center;
  179. padding-right: 5rem;
  180. font-size: 2rem;
  181. user-select: none;
  182. cursor: default;
  183. transition: none;
  184. color: $color__gray--darkest;
  185. span {
  186. font-size: 4rem;
  187. color: $color__gray--darker;
  188. }
  189. @at-root #{&}__loading {
  190. margin-top: 2rem;
  191. margin-bottom: 0.5rem;
  192. }
  193. }
  194. @media (max-width: 420px) {
  195. div.overlay_message {
  196. width: 100%;
  197. text-align: center;
  198. padding: 0;
  199. margin-top: 5rem;
  200. }
  201. }
  202. //Vue transition class
  203. .fade-enter-active, .fade-leave-active {
  204. transition: opacity 0.2s;
  205. }
  206. .fade-enter, .fade-leave-to {
  207. opacity: 0;
  208. }
  209. .slide-enter-active, .slide-leave-active {
  210. transition: opacity 0.2s, max-height 0.2s;
  211. overflow: hidden;
  212. }
  213. .slide-enter, .slide-leave-to {
  214. max-height: 0;
  215. }
  216. .slide-enter-to, .slide-leave {
  217. max-height: 20rem;
  218. }