about summary refs log tree commit diff
path: root/app/javascript/styles/mastodon/introduction.scss
blob: 222d8f60e863b167b5b76326a317b1ad0792f5b4 (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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
.introduction {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  @media screen and (max-width: 920px) {
    background: darken($ui-base-color, 8%);
    display: block !important;
  }

  &__pager {
    background: darken($ui-base-color, 8%);
    box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
    overflow: hidden;
  }

  &__pager,
  &__frame {
    border-radius: 10px;
    width: 50vw;
    min-width: 920px;

    @media screen and (max-width: 920px) {
      min-width: 0;
      width: 100%;
      border-radius: 0;
      box-shadow: none;
    }
  }

  &__frame-wrapper {
    opacity: 0;
    transition: opacity 500ms linear;

    &.active {
      opacity: 1;
      transition: opacity 50ms linear;
    }
  }

  &__frame {
    overflow: hidden;
  }

  &__illustration {
    height: 50vh;

    @media screen and (max-width: 630px) {
      height: auto;
    }

    img {
      object-fit: cover;
      display: block;
      margin: 0;
      width: 100%;
      height: 100%;
    }
  }

  &__text {
    border-top: 2px solid $ui-highlight-color;

    &--columnized {
      display: flex;

      & > div {
        flex: 1 1 33.33%;
        text-align: center;
        padding: 25px;
        padding-bottom: 30px;
      }

      @media screen and (max-width: 630px) {
        display: block;
        padding: 15px 0;
        padding-bottom: 20px;

        & > div {
          padding: 10px 25px;
        }
      }
    }

    h3 {
      font-size: 24px;
      line-height: 1.5;
      font-weight: 700;
      margin-bottom: 10px;
    }

    p {
      font-size: 16px;
      line-height: 24px;
      font-weight: 400;
      color: $darker-text-color;

      code {
        display: inline-block;
        background: darken($ui-base-color, 8%);
        font-size: 15px;
        border: 1px solid lighten($ui-base-color, 8%);
        border-radius: 2px;
        padding: 1px 3px;
      }
    }

    &--centered {
      padding: 25px;
      padding-bottom: 30px;
      text-align: center;
    }
  }

  &__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;

    @media screen and (max-width: 630px) {
      display: none;
    }
  }

  &__dot {
    width: 14px;
    height: 14px;
    border-radius: 14px;
    border: 1px solid $ui-highlight-color;
    background: transparent;
    margin: 0 3px;
    cursor: pointer;

    &:hover {
      background: lighten($ui-base-color, 8%);
    }

    &.active {
      cursor: default;
      background: $ui-highlight-color;
    }
  }

  &__action {
    padding: 25px;
    padding-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}