summaryrefslogtreecommitdiff
path: root/sass/components/_contact-form.scss
blob: 1195ab731f4e204b04c4355d10407daf6841dbcb (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
@use "../abstracts/" as *;

.messenger-form {
  @include standard-grid;
  gap: 2rem;
  width: 50%;

  // larger tablet to smaller laptop screen size
  @include responsive(laptop) {
    width: 100%;
  }

  // container for each label & input
  div {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;

    // div container with textarea input spans entire column, pushes button to next row
    &.text-area {
      grid-column: 1 / 3;
    }
  }

  label {
    font-weight: bold;
  }

  input,
  textarea {
    background-color: $text-main;
    border: none;
    border-radius: 10px;
    padding: 0.5rem;
    width: 100%;

    &:focus {
      color: $text-main;
      background-color: $bg-text-container;
      outline: 3px solid $text-special-dark;
    }
  }
}

// mobile to smaller tablet screen sizes
@media screen and (max-width: 820px) {
  .messenger-form {
    @include flex-column-center;
    width: 100%;

    & div {
      width: 100%;
    }
  }
}