aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/FormElements/Form/Form.module.scss
blob: 0f7c4374a65f43e9e0ef4332e0b07f29ff93874b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
@use "@styles/abstracts/functions" as fun;

.wrapper {
  width: 100%;
}

.centered {
  max-width: 45ch;
  margin-left: auto;
  margin-right: auto;
}

.search {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;

  > input {
    padding-right: calc(var(--btn-size) + var(--spacing-2xs));

    &:hover ~ button {
      transform: translate(fun.convert-px(-3), fun.convert-px(-3));
    }

    &:focus ~ button {
      transform: translate(fun.convert-px(3), fun.convert-px(3));
    }
  }
}

.settings {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  margin: var(--spacing-sm) 0;
  position: relative;
}