Ron Au commited on
Commit
9d0de4e
1 Parent(s): 8cf142f

feat(style): Tweak styles

Browse files
Files changed (2) hide show
  1. static/js/index.js +1 -1
  2. static/style.css +5 -3
static/js/index.js CHANGED
@@ -32,7 +32,7 @@ const generate = async () => {
32
  actions.querySelectorAll('button').forEach((button) => button.setAttribute('tabindex', '0'));
33
 
34
  if (window.innerWidth <= 920) {
35
- scene.scrollIntoView({ behavior: 'smooth', block: 'center' });
36
  }
37
 
38
  await new Promise((resolve) => setTimeout(resolve, 2_000));
 
32
  actions.querySelectorAll('button').forEach((button) => button.setAttribute('tabindex', '0'));
33
 
34
  if (window.innerWidth <= 920) {
35
+ scene.scrollIntoView({ behavior: 'smooth', block: 'end' });
36
  }
37
 
38
  await new Promise((resolve) => setTimeout(resolve, 2_000));
static/style.css CHANGED
@@ -63,7 +63,7 @@ main {
63
  }
64
 
65
  main > section {
66
- width: 90%;
67
  }
68
 
69
  main > section.info h1 {
@@ -186,6 +186,7 @@ section {
186
  .info input {
187
  display: block;
188
  width: 100%;
 
189
  box-sizing: border-box;
190
  padding: 0.5rem 1rem 0.5rem 5rem;
191
  border: 3px solid hsl(0 0% 70%);
@@ -194,8 +195,7 @@ section {
194
  text-align: center;
195
  font-size: 1.25rem;
196
  transition: box-shadow 0.5s ease-out;
197
- border-top-left-radius: 1rem;
198
- border-bottom-left-radius: 1rem;
199
  box-shadow: none;
200
  }
201
 
@@ -881,6 +881,7 @@ header > * {
881
  }
882
 
883
  header > div {
 
884
  position: absolute;
885
  right: 1rem;
886
  }
@@ -1054,6 +1055,7 @@ hr {
1054
  display: flex;
1055
  flex-direction: column;
1056
  align-items: center;
 
1057
  margin: 0;
1058
  }
1059
 
 
63
  }
64
 
65
  main > section {
66
+ width: 95%;
67
  }
68
 
69
  main > section.info h1 {
 
186
  .info input {
187
  display: block;
188
  width: 100%;
189
+ height: 45px;
190
  box-sizing: border-box;
191
  padding: 0.5rem 1rem 0.5rem 5rem;
192
  border: 3px solid hsl(0 0% 70%);
 
195
  text-align: center;
196
  font-size: 1.25rem;
197
  transition: box-shadow 0.5s ease-out;
198
+ border-radius: 1rem 0 0 1rem;;
 
199
  box-shadow: none;
200
  }
201
 
 
881
  }
882
 
883
  header > div {
884
+ width: max-content;
885
  position: absolute;
886
  right: 1rem;
887
  }
 
1055
  display: flex;
1056
  flex-direction: column;
1057
  align-items: center;
1058
+ width: max-content;
1059
  margin: 0;
1060
  }
1061