Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_jumbo.scss « partials « styles « src - github.com/GDGToulouse/devfest-theme-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8d23b44b8473ffb13db9636ad41c80353a01dbd8 (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
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

.jumbo {
  position: relative;
  height: calc(100vh - var(--toolbar-height));
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;

  .inner-wrapper {
    text-align: center;
  }

  .jumbo-logo {
    max-width: 100%;
    width: var(--jumbo-logo-width, 400px);
    height: auto;
    filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, .5));
  }

  p {
    margin: var(--space-2) 0;
    font-size: 2rem;
  }

  .jumbo-cover {
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    // margin-top: -.25em;

    &::after {
      background-color: var(--primary);
      content: '';
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      opacity: var(--jumbo-overlay-opacity);
    }
  }

  .inner-wrapper{
    max-width: 75vw;
    .inner {
      padding: var(--space-4);
      color: var(--primary-txt);
      position: relative;
      overflow: hidden;
      text-align: center;
      display: flex;
      flex-direction: column;
      h2 {
        font-size: 2rem;
        margin: var(--space-3) 0;
        font-weight: bold;
      }
      h3 {
        font-size: 1.8rem;
        margin: var(--space-3) 0;
      }
      a {
        align-self: center;
        margin: .5em;
      }
    }

  }

  .scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 0;
    transform: translateX(50vw);
    transform-origin: center center;
    color: #fff;

    .icon {
      height: 2.5em;
      width: 1.5em;

      .scroller {
        animation: scrollDownMove .8s ease-in-out alternate infinite;
      }
    }

  }
}


@keyframes scrollDownMove {
  from {
    transform: translateY(-.15em);
  }
  to {
    transform: translateY(.65em);
  }
}

@include mq($until: lg) {
  .jumbo .inner {
    max-width: 80vw;
    padding: 0;
  }
  .jumbo .inner h1 {
    img {
      max-width: 100%;
    }

    font-size: 1.5rem;
  }
}