Another copy of my dotfiles. Because I don't completely trust GitHub.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

170 lines
3.2 KiB

  1. /******* RESET *******/
  2. html,
  3. body,
  4. p,
  5. h1,
  6. h2,
  7. h3,
  8. h4,
  9. h5,
  10. h6 {
  11. margin: 0;
  12. padding: 0;
  13. }
  14. button,
  15. input,
  16. select,
  17. textarea {
  18. margin: 0;
  19. }
  20. *,
  21. *::before,
  22. *::after {
  23. box-sizing: border-box;
  24. }
  25. /************** VARIABLES **************/
  26. :root {
  27. /* colors */
  28. --main: hsl(229, 27%, 8%);
  29. --main-light: hsl(30, 35%, 40%);
  30. --module-background: hsl(31, 77%, 60%);
  31. --search-background: hsl(4, 100%, 74%);
  32. --pomme-background: hsl(118, 18%, 66%);
  33. --myrtille-background: hsl(235, 17%, 63%);
  34. /* font-family */
  35. --font-family-sans: system-ui, -apple-system, blinkmacsystemfont, 'Segoe UI', roboto, ubuntu, 'Helvetica Neue', sans-serif;
  36. /* font Modular scale */
  37. --scale-000: 0.75rem; /* 12px */
  38. --scale-00: 0.875rem; /* 14px */
  39. --scale-0: 1rem; /* 16px */
  40. --scale-1: 1.125rem; /* 18px */
  41. --scale-2: 1.25rem; /* 20px */
  42. --scale-3: 1.5rem; /* 24px */
  43. --scale-4: 1.875rem; /* 30px */
  44. --scale-5: 2.25rem; /* 36px */
  45. /* font weights */
  46. --font-weight-regular: 400;
  47. --font-weight-bold: 700;
  48. /* sizing property -> margin, padding, height */
  49. --spacing-0000: 4px;
  50. --spacing-000: 8px;
  51. --spacing-00: 12px;
  52. --spacing-0: 16px;
  53. --spacing-1: 20px;
  54. --spacing-2: 32px;
  55. --spacing-3: 48px;
  56. --spacing-4: 64px;
  57. --spacing-5: 96px;
  58. /* Widths applied as max-width */
  59. --width-00: 120px;
  60. /* Grid gaps */
  61. --gap-00: 12px;
  62. --gap-0: 16px;
  63. --gap-1: 24px;
  64. }
  65. /************** GLOBAL STYLES **************/
  66. html {
  67. background-color: var(--main);
  68. }
  69. body {
  70. padding: var(--spacing-4);
  71. overflow: hidden;
  72. font-family: var(--font-family-sans);
  73. }
  74. grid {
  75. display: grid;
  76. grid-auto-flow: dense;
  77. grid-auto-rows: var(--spacing-2);
  78. grid-gap: var(--gap-1);
  79. grid-template-columns: repeat(auto-fit, minmax(var(--width-00), 1fr));
  80. }
  81. pomme {
  82. grid-row: span 2;
  83. background-color: var(--pomme-background);
  84. border-radius: 10px;
  85. animation: fadein-page 200ms ease-out normal backwards;
  86. }
  87. pp-loader {
  88. display: grid;
  89. grid-gap: var(--gap-00);
  90. grid-template-areas:
  91. 'pp-loader-dot pp-loader-dot'
  92. 'pp-loader-dot pp-loader-dot';
  93. grid-template-columns: 1fr 1fr;
  94. grid-template-rows: 1fr 1fr;
  95. }
  96. pp-loader-dot {
  97. width: var(--spacing-1);
  98. height: var(--spacing-1);
  99. background-color: var(--main);
  100. border-radius: 50%;
  101. animation: loader-animation 1s linear 1s infinite alternate;
  102. }
  103. pp-loader-dot:nth-child(1) {
  104. animation-delay: 0s;
  105. }
  106. pp-loader-dot:nth-child(2) {
  107. animation-delay: -0.2s;
  108. }
  109. pp-loader-dot:nth-child(3) {
  110. animation-delay: -0.4s;
  111. }
  112. pp-loader-dot:nth-child(4) {
  113. animation-delay: -0.6s;
  114. }
  115. .error-notification {
  116. color: var(--search-background);
  117. font-weight: var(--font-weight-regular);
  118. font-size: var(--scale-2);
  119. }
  120. /******* ANIMATION *******/
  121. @keyframes module-display {
  122. 0% { opacity: 0; }
  123. 100% { opacity: 1; }
  124. }
  125. @keyframes loader-animation {
  126. 100% { background-color: var(--module-background); }
  127. }
  128. @keyframes fadein-page {
  129. 0% { transform: scale(0); }
  130. 70% { transform: scale(1.05); }
  131. 100% { transform: scale(1); }
  132. }
  133. /******* IMPORTS *******/
  134. @import './myrtille/myrtille.css';
  135. @import './raisin/raisin.css';
  136. @import './clock/clock.css';
  137. @import './search/search.css';
  138. @import './binance/binance.css';
  139. @import './openweather/openweather.css';
  140. @import './unsplash/unsplash.css';
  141. @import './stormglass/stormglass.css';