mirror of https://github.com/lxndrblz/anatole.git

Alexander Bilz
12.25.2022 13383f64edc1fc620bd17670a5505ef63e8dd1cd
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
154
155
156
157
.portfolio {
  position: relative;
  z-index: 0;
  padding-left: 0px;
  padding-right: 0px;
  padding-bottom: 0px;
  padding-top: 48px;
 
  @include desktop_and_print {
    padding: 48px;
  }
 
  &::before {
    border: $border;
    content: '';
    z-index: -1;
    position: absolute;
    top: 10%;
    left: 10%;
    bottom: 10%;
    right: 10%;
    background: transparent;
    border-radius: 0.5em;
  }
 
  &__title {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 2.6rem;
    line-height: 1;
    font-weight: 600;
  }
 
  &__image {
    max-width: 100%;
    min-width: 100%;
    box-shadow: #000;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    object-fit: cover;
    border-bottom: 0px;
    display: block;
 
    &-wrapper {
      display: block;
      background-color: #fff;
      position: relative;
      z-index: 1;
      overflow: hidden;
 
      &--right,
      &--left {
        margin-right: auto;
        margin-left: auto;
        width: calc(100% - 64px);
        background-color: $accent;
        z-index: -1;
        padding: 32px 32px 0px 32px;
        max-width: inherit;
 
        @include desktop_and_print {
          width: 60%;
          object-fit: contain;
          max-width: none;
          border-top-right-radius: 0.5em;
          border-top-left-radius: 0.5em;
          padding: 0;
        }
      }
 
      &--left {
        @include desktop_and_print {
          margin-right: auto;
          margin-left: 0;
          border-bottom-left-radius: 0.5em;
        }
      }
 
      &--right {
        @include desktop_and_print {
          margin-right: 0;
          margin-left: auto;
          border-bottom-right-radius: 0.5em;
        }
      }
    }
  }
 
  &__description {
    background-color: $accent;
    padding: 32px;
    @include desktop_and_print {
      padding: 48px;
      box-shadow: $shadow;
      background-color: $accent;
      border-radius: 0.5em;
    }
 
    &--left,
    &--right {
      margin-top: -24px;
      border-bottom: $border;
 
      @include desktop_and_print {
        border-bottom: 0px;
        width: 60%;
        margin-top: -48px;
        z-index: 3;
        background: $primary-lighter;
      }
    }
 
    &--right {
      @include desktop_and_print {
        margin-left: auto;
      }
    }
  }
 
  &__button {
    font-weight: 400;
    display: inline-block;
    position: relative;
    outline: 0;
    color: $info;
    background: transparent;
    font-size: 1.4rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid $primary-light;
    white-space: nowrap;
    font-style: normal;
    border-radius: 999em;
    padding: 10px;
 
    &:hover {
      display: inline-block;
      position: relative;
      outline: 0px;
      background: transparent;
      font-size: 1.4rem;
      text-align: center;
      text-decoration: none;
      cursor: pointer;
      border: 1px solid $primary;
      white-space: nowrap;
      font-weight: 400;
      font-style: normal;
      border-radius: 999em;
    }
 
    &-wrapper {
      padding-bottom: 1em;
    }
  }
}