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

alexanderdavide
11.46.2022 75e1630bbd235082d5a1c20fc6c12ec5fef61730
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
.portfolio {
  position: relative;
  z-index: 0;
  padding-left: 0px;
  padding-right: 0px;
  padding-bottom: 0px;
  padding-top: 48px;
 
  @media screen and (min-width: 961px), 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;
  }
 
  &__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;
 
        @media screen and (min-width: 961px), print {
          width: 60%;
          object-fit: contain;
          max-width: none;
          border-top-right-radius: 0.5em;
          border-top-left-radius: 0.5em;
          padding: 0;
        }
      }
 
      &--left {
        @media screen and (min-width: 961px), print {
          margin-right: auto;
          margin-left: 0;
          border-bottom-left-radius: 0.5em;
        }
      }
 
      &--right {
        @media screen and (min-width: 961px), print {
          margin-right: 0;
          margin-left: auto;
          border-bottom-right-radius: 0.5em;
        }
      }
    }
  }
 
  &__description {
    background-color: $accent;
    padding: 32px;
    @media screen and (min-width: 961px), print {
      padding: 48px;
      box-shadow: $shadow;
      background-color: $accent;
      border-radius: 0.5em;
    }
 
    &--left,
    &--right {
      margin-top: -24px;
      border-bottom: $border;
 
      @media screen and (min-width: 961px), print {
        border-bottom: 0px;
        width: 60%;
        margin-top: -48px;
        z-index: 3;
        background: $primary-lighter;
      }
    }
 
    &--right {
      @media screen and (min-width: 961px), 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;
    }
  }
}