Advertisement
mrethy

widget css

Aug 21st, 2023
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.67 KB | None | 0 0
  1. :root {
  2.   --color-bg: #69F7BE;
  3.   --color-text-main: #000000;
  4.   --color-primary: #FFFF00;
  5.   --wrapper-height: 87vh;
  6.   --image-max-width: 300px;
  7.   --font-family: "HK Grotesk";
  8.   --font-family-header: "HK Grotesk";
  9. }
  10. body { margin: 0;}
  11. /* Basic page style resets */
  12. * {
  13.   box-sizing: border-box;
  14. }
  15. [hidden] {
  16.   display: none !important;
  17. }
  18.  
  19. /* Import fonts */
  20. @font-face {
  21.   font-family: HK Grotesk;
  22.   src: url("https://cdn.glitch.me/605e2a51-d45f-4d87-a285-9410ad350515%2FHKGrotesk-Regular.otf?v=1603136326027")
  23.     format("opentype");
  24. }
  25. @font-face {
  26.   font-family: HK Grotesk;
  27.   font-weight: bold;
  28.   src: url("https://cdn.glitch.me/605e2a51-d45f-4d87-a285-9410ad350515%2FHKGrotesk-Bold.otf?v=1603136323437")
  29.     format("opentype");
  30. }
  31.  
  32. /* Our remix on glitch button */
  33. .btn--remix {
  34.   font-family: HK Grotesk;
  35.   padding: 0.75rem 1rem;
  36.   font-size: 1.1rem;
  37.   line-height: 1rem;
  38.   font-weight: 500;
  39.   height: 2.75rem;
  40.   align-items: center;
  41.   cursor: pointer;
  42.   background: #FFFFFF;
  43.   border: 1px solid #000000;
  44.   box-sizing: border-box;
  45.   border-radius: 4px;
  46.   text-decoration: none;
  47.   color: #000;
  48.   white-space: nowrap;
  49.   margin-left: auto;
  50. }
  51. .btn--remix img {
  52.   margin-right: 0.5rem;
  53. }
  54. .btn--remix:hover {
  55.   background-color: #D0FFF1;
  56. }
  57.  
  58. /* Navigation grid */
  59. .footer {
  60.   display: flex;
  61.   justify-content: space-between;
  62.   margin: 1rem auto 0;
  63.   padding: 1rem 0 0.75rem 0;
  64.   width: 100%;
  65.   flex-wrap: wrap;
  66.   border-top: 4px solid #fff;
  67. }
  68.  
  69. .footer a:not(.btn--remix):link,
  70. a:not(.btn--remix):visited {
  71.   font-family: HK Grotesk;
  72.   font-style: normal;
  73.   font-weight: normal;
  74.   font-size: 1.1rem;
  75.   color: #000;
  76.   text-decoration: none;
  77.   border-style: none;
  78. }
  79. .footer a:hover {
  80.   background: var(--color-primary);
  81. }
  82.  
  83. .footer .links {
  84.   padding: 0.5rem 1rem 1.5rem;
  85.   white-space: nowrap;
  86. }
  87.  
  88. .divider {
  89.   padding: 0 1rem;
  90. }
  91. /******************************************************************************
  92. END Glitch hello-app default styles
  93. ******************************************************************************/
  94.  
  95. body {
  96.   font-family: HK Grotesk;
  97.   background-color: var(--color-bg);
  98. }
  99.  
  100. /* Page structure */
  101. .wrapper {
  102.   min-height: var(--wrapper-height);
  103.   display: grid;
  104.   place-items: center;
  105.   margin: 0 1rem;
  106. }
  107. .content {
  108.   display: flex;
  109.   flex-direction: column;
  110.   align-items: center;
  111.   justify-content: center;
  112. }
  113.  
  114. /* Very light scaling for our illustration */
  115. .title {
  116.   color: #2800FF;
  117.   font-family: HK Grotesk;
  118.   font-style: normal;
  119.   font-weight: bold;
  120.   font-size: 100px;
  121.   line-height: 105%;
  122.   margin: 0;
  123. }
  124.  
  125. /* Very light scaling for our illustration */
  126. .illustration {
  127.   max-width: 100%;
  128.   max-height: var(--image-max-width);
  129.   margin-top: var(--image-margin);
  130. }
  131.  
  132. /* Instructions */
  133. .instructions {
  134.   margin: 1rem auto 0;
  135. }
  136.  
  137. /* Button - Add it from the README instructions */
  138. button,
  139. input {
  140.   font-family: inherit;
  141.   font-size: 100%;
  142.   background: #FFFFFF;
  143.   border: 1px solid #000000;
  144.   box-sizing: border-box;
  145.   border-radius: 4px;
  146.   padding: 0.5rem 1rem;
  147.   transition: 500ms;
  148. }
  149.  
  150. /* Subheading */
  151. h2 {
  152.   color: #2800FF;
  153. }
  154.  
  155. /* Interactive image */
  156. .illustration:active {
  157.   transform: translateY(5px);
  158. }
  159.  
  160. /* Button dip
  161. - Toggling this class on and off will move it down and up again
  162. - The button transition property above determines the speed of the translate (500ms)
  163. */
  164. .dipped {
  165.   transform: translateY(5px);
  166. }
  167.  
  168. /* Links that open files in the editor */
  169. .fileopener {
  170.   cursor:pointer;
  171.   font-weight:bold;
  172.   border-bottom:3px solid var(--color-primary);
  173.   color: var(--color-secondary);
  174. }
  175. .fileopener:hover {
  176.   border-bottom:3px solid var(--color-secondary);
  177. }
  178.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement