]> git.ardis.lu - google-forms-frontend/commitdiff
Style help button and dialog
authorArdis Lu <ardisglu@gmail.com>
Sun, 9 Oct 2022 04:43:46 +0000 (21:43 -0700)
committerArdis Lu <ardisglu@gmail.com>
Sun, 9 Oct 2022 04:43:46 +0000 (21:43 -0700)
index.html

index 116a2db7b6a5aa44bc11284468931d95b4306a0c..ee7b1d6ed7fefbc5db77b6be795252f9cc3bd61b 100644 (file)
     button {
       margin-inline-end: 1rem;
     }
+
+    .help {
+      background: transparent;
+      border: none;
+      padding: 0;
+      width: 48px;
+      position: fixed;
+      right: 16px;
+      bottom: 16px;
+      cursor: pointer;
+    }
+
+    .help>svg {
+      transition: transform 500ms, filter 500ms;
+    }
+
+    .help>svg:hover {
+      transform: translateY(-5%);
+      filter: drop-shadow(0 0 16px var(--secondary));
+      transition: transform 150ms, filter 300ms;
+    }
+
+    dialog {
+      background: var(--primary-lightest);
+      border: none;
+      border-block-start: 8px solid var(--secondary);
+      border-radius: 0 0 4px 4px;
+    }
+
+    dialog h1 {
+      margin: 0;
+    }
   </style>
   <title>google-forms-frontend</title>
 </head>
This page took 0.035501 seconds and 4 git commands to generate.