elementStyles.scss 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  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. .picture_circle {
  33. border-radius: 100%;
  34. background-position: center center;
  35. background-size: cover;
  36. background-repeat: no-repeat;
  37. position: relative;
  38. &:after {
  39. content: '';
  40. position: absolute;
  41. width: calc(100% - 4px);
  42. height: calc(100% - 4px);
  43. left: 0;
  44. top: 0;
  45. border: 2px solid rgba(150, 150, 150, 0.25);
  46. border-radius: 100%;
  47. }
  48. }
  49. .button {
  50. border: 1px solid $color__gray--darkest;
  51. display: inline-block;
  52. border-radius: 0.25rem;
  53. text-align: center;
  54. @include text($font--role-default, 1rem, bold);
  55. padding: 0.5rem;
  56. cursor: pointer;
  57. letter-spacing: 0.25px;
  58. background: none;
  59. background-color: #fff;
  60. color: lighten($color__text--primary, 30%) !important;
  61. transition: background-color 0.2s, border-color 0.2s, filter 0.2s;
  62. outline: none;
  63. &:hover {
  64. background-color: $color__lightgray--primary;
  65. border-color: $color__gray--darkest;
  66. }
  67. &:active {
  68. background-color: $color__lightgray--darker;
  69. border-color: $color__gray--darkest;
  70. }
  71. &::-moz-focus-inner { border: 0; }
  72. @at-root #{&}--borderless {
  73. color: $color__text--secondary;
  74. border-color: transparent;
  75. }
  76. @at-root #{&}--thin_text {
  77. font-weight: 400;
  78. }
  79. @at-root #{&}--margin {
  80. margin-right: 0.5rem;
  81. }
  82. @at-root #{&}--modal {
  83. font-size: 1rem;
  84. font-weight: 600;
  85. padding: 0.25rem 0.5rem;
  86. margin-left: 0.25rem;
  87. }
  88. @at-root #{&}--color_input {
  89. width: 10rem;
  90. margin-bottom: 1rem;
  91. height: 31px;
  92. padding: 0.25rem;
  93. }
  94. @at-root #{&}--disabled {
  95. position: relative;
  96. pointer-events: none;
  97. @include user-select(none);
  98. filter: saturate(80%) grayscale(40%) brightness(110%);
  99. }
  100. @at-root #{&}--lightblue {
  101. border-color: $color__blue--primary;
  102. &:hover, &:active {
  103. border-color: $color__blue--darker;
  104. }
  105. }
  106. @mixin filled_button($background, $border, $text: #fff) {
  107. background-color: $background;
  108. border-color: $border;
  109. color: $text !important;
  110. &:hover {
  111. background-color: darken($background, 5%);
  112. border-color: rgba($border, 0.6);
  113. color: darken(#fff, 5%) !important;
  114. }
  115. &:active {
  116. background-color: darken($background, 10%);
  117. border-color: rgba($border, 0.6);
  118. color: darken(#fff, 10%) !important;
  119. }
  120. }
  121. @at-root #{&}--blue {
  122. @include filled_button(
  123. $color__blue--primary,
  124. $color__blue--darker
  125. );
  126. }
  127. @at-root #{&}--green {
  128. @include filled_button($color__green--primary, $color__green--darker);
  129. }
  130. @at-root #{&}--red {
  131. @include filled_button($color__red--primary, $color__red--darker);
  132. }
  133. }
  134. @media (max-width: 420px) {
  135. .button {
  136. user-select: none;
  137. }
  138. }
  139. .input {
  140. border: 1px solid $color__gray--darker;
  141. border-radius: 0.25rem;
  142. @include text;
  143. padding: 0.25rem;
  144. outline: none;
  145. &:hover, &:focus {
  146. border-color: $color__gray--darkest;
  147. }
  148. }
  149. .h1 {
  150. @include text($font--role-default, 3rem);
  151. }
  152. .h3 {
  153. @include text($font--role-default, 1.5rem);
  154. font-weight: 500;
  155. @at-root #{&}--margin_top {
  156. margin-top: 1.5rem;
  157. }
  158. }
  159. .p--condensed {
  160. margin-top: 0.25rem;
  161. }
  162. .category_widget {
  163. @at-root #{&}__box {
  164. background-color: #fff;
  165. padding: 1.5rem;
  166. border-radius: 0.25rem;
  167. margin-bottom: 1rem;
  168. border: thin solid $color__gray--darker;
  169. }
  170. @at-root #{&}__text {
  171. margin-bottom: 1rem;
  172. @at-root #{&}__title {
  173. margin-bottom: 0.5rem;
  174. font-weight: bold;
  175. font-size: 1.25rem;
  176. }
  177. }
  178. }
  179. .overlay_message {
  180. display: flex;
  181. flex-direction: column;
  182. align-items: center;
  183. justify-content: center;
  184. padding-right: 5rem;
  185. font-size: 2rem;
  186. user-select: none;
  187. cursor: default;
  188. transition: none;
  189. color: $color__gray--darkest;
  190. span {
  191. font-size: 4rem;
  192. color: $color__gray--darker;
  193. }
  194. @at-root #{&}__loading {
  195. margin-top: 2rem;
  196. margin-bottom: 0.5rem;
  197. }
  198. }
  199. @media (max-width: 420px) {
  200. div.overlay_message {
  201. width: 100%;
  202. text-align: center;
  203. padding: 0;
  204. margin-top: 5rem;
  205. }
  206. }
  207. .link_preview {
  208. border: thick solid $color__gray--primary;
  209. padding: 1rem;
  210. h1, h2, p {
  211. margin: 0;
  212. }
  213. h1 {
  214. font-size: 1.25rem;
  215. }
  216. h2 {
  217. font-size: 1rem;
  218. font-weight: normal;
  219. color: $color__darkgray--primary;
  220. }
  221. p {
  222. font-weight: 300;
  223. display: flex;
  224. margin-top: 0.5rem;
  225. }
  226. img {
  227. max-width: 100px;
  228. max-height: 100px;
  229. margin-right: 0.5rem;
  230. }
  231. }
  232. blockquote.twitter-tweet {
  233. padding: 1rem;
  234. padding-top: 0;
  235. background-color: unset;
  236. border: thick solid $color__gray--primary;
  237. * {
  238. padding: 0;
  239. }
  240. }
  241. //Vue transition class
  242. .fade-enter-active, .fade-leave-active {
  243. transition: opacity 0.2s;
  244. }
  245. .fade-enter, .fade-leave-to {
  246. opacity: 0;
  247. }
  248. .slide-enter-active, .slide-leave-active {
  249. transition: opacity 0.2s, max-height 0.2s;
  250. overflow: hidden;
  251. }
  252. .slide-enter, .slide-leave-to {
  253. max-height: 0;
  254. }
  255. .slide-enter-to, .slide-leave {
  256. max-height: 20rem;
  257. }