aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/docs/src/pages/index.module.css
blob: 572e5eef019667b061e8d75e7195b10d8130a549 (plain) (blame)
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/*
 * SPDX-FileCopyrightText: 2024 The Refinery Authors
 *
 * SPDX-License-Identifier: EPL-2.0
 */

.buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
}

.section {
  padding: 4rem 0;
}

@media (max-width: 576px) {
  .hero, .section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .button {
    flex-grow: 1;
  }
}

.section__title {
  text-align: center;
}

.section--video {
  background: var(--ifm-background-surface-color);
}

.video__container {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 560/315;
  box-shadow: var(--ifm-global-shadow-lw);
  transition: box-shadow var(--ifm-button-transition-duration) var(--ifm-transition-timing-default);
}

.video__container:hover,
.video__container:focus-within {
  box-shadow: var(--ifm-global-shadow-md);
}

.video, .video__button, .video__cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video__button {
  margin: 0;
  padding: 0;
  border: none;
  cursor: pointer;
}

.video__cover {
  z-index: 1;
}

.video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  aspect-ratio: 1/1;
  height: 16rem;
  width: auto;
  max-height: 50%;
  background: var(--ifm-color-primary);
  mask-image: url(@material-icons/svg/svg/play_circle/outline.svg);
  mask-size: contain;
  transition: background var(--ifm-button-transition-duration) var(--ifm-transition-timing-default);
}

.video__button:hover .video__play,
.video__button:focus .video__play {
  background: var(--ifm-color-primary-dark);
}