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
|
|
| .box-wrapper {
| padding: 48px;
| position: relative;
| z-index: 0;
| }
|
| .box-image {
| 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;
| max-width: 400px;
| z-index: -1;
| }
| img {
| min-width: 100%;
| box-shadow: #000;
| overflow: hidden;
| transition: box-shadow 0.3s ease;
| object-fit: cover;
| border-bottom: 0px;
| display: block;
| }
| }
|
| .box {
| background-color: $primary-lighter;
| padding: 32px;
| &--left, &--right {
| margin-top: -24px;
| }
| }
|
| .cta {
| padding-bottom: 1em;
| }
|
| @media screen and (min-width: 961px), print {
| .box {
| padding: 48px;
| box-shadow: $shadow;
| background-color: $accent;
| border-radius: 0.5em;
|
| &--left,
| &--right {
| width: 60%;
| margin-top: -48px;
| z-index: 3;
| background: $primary-lighter;
| }
|
| &--right {
| margin-left: auto;
| }
| }
|
| .box-wrapper::before {
| border: $border;
| content: '';
| z-index: -1;
| position: absolute;
| top: 10%;
| left: 10%;
| bottom: 10%;
| right: 10%;
| background: transparent;
| border-radius: 0.5em;
| }
|
| .box-image{
| &--right, &--left {
| width: 60%;
| object-fit: contain;
| max-width: none;
| border-top-right-radius: 0.5em;
| border-top-left-radius: 0.5em;
| }
|
| &--right {
| margin-right: 0;
| margin-left: auto;
| border-bottom-right-radius: 0.5em;
| }
|
| &--left {
| margin-right: auto;
| margin-left: 0;
| border-bottom-left-radius: 0.5em;
| }
|
| }
| }
|
| @media screen and (max-width: 960px) {
|
| .box {
| &--right, &--left {
| border-bottom:$border;
| }
| }
|
|
|
| .box-image{
| &--left, &--right {
| padding: 32px 32px 0px 32px;
| max-width: inherit;
| }
| }
|
| .box-wrapper {
| padding-left: 0px;
| padding-right: 0px;
| padding-bottom: 0px;
| padding-top: 48px;
| }
| }
|
|