aboutsummaryrefslogtreecommitdiff
path: root/src/lib/assets/css/projects.scss
blob: 3da9c705b5957ea43b9e3ef9cf6351e249d2cd87 (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
58
59
60
61
62
63
64
$font-min: 16px;
$font-desired: 1vw;
$font-max: 32px;

.project-container {
  padding: 0 10vw;
  display: grid;
  grid-template-columns: repeat(2, minmax(40vw, 1fr));
  height: 80dvh;
  align-items: center;
  justify-items: center;
  overflow: auto;
  align-content: center;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.project-container::-webkit-scrollbar {
  display: none;
}

.project {
  margin: 15px 15px;
  font-size: clamp($font-min, $font-desired, $font-max);
  padding: 25px 10px;
  display: flex;
  align-items: center;
  background: #1e1e2e;
  transition: transform .3s ease-in-out;
  border-radius: 2vh;
  box-shadow: -12px -12px 28px #27273b73, 12px 12px 20px #12121c73;
}

.spacer {
  height: 20dvh;
  display: flex;
  flex-direction: column;
  justify-content: end;
  z-index: 30;
}

.home {
  font-size: clamp($font-min, 2.5vw, 48px);
  margin-bottom: 15px;
}

.project-icon {
  width: 4rem;
  height: 4rem;
  margin-right: 10px;
}

@media (max-width: 839px) {
  .project-container {
    grid-template-columns: minmax(90vw, 1fr);
    padding: 0 5vw;
    align-content: normal;
  }
}

a:hover .project {
  transform: scale(102%);
  transition: transform .3s ease-in-out;
}