blob: e138c863f8c8682793e6f0e95f0b924abad5a14a (
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
|
@import '../../shared/styles/jetpack-variables.scss';
.simple-payments__loading {
animation: simple-payments-loading 1600ms ease-in-out infinite;
}
@keyframes simple-payments-loading {
0% {
opacity: 0.5;
}
50% {
opacity: 0.7;
}
100% {
opacity: 0.5;
}
}
.jetpack-simple-payments-wrapper {
margin-bottom: $jetpack-block-margin-bottom;
}
/* Higher specificity in order to reset paragraph style */
body .jetpack-simple-payments-wrapper .jetpack-simple-payments-details p {
margin: 0 0 $jetpack-block-margin-bottom;
padding: 0;
}
.jetpack-simple-payments-product {
display: flex;
flex-direction: column;
}
.jetpack-simple-payments-product-image {
flex: 0 0 30%;
margin-bottom: $jetpack-block-margin-bottom;
}
.jetpack-simple-payments-image {
box-sizing: border-box;
min-width: 70px;
padding-top: 100%;
position: relative;
}
.jetpack-simple-payments-image img {
border: 0;
border-radius: 0;
height: auto;
left: 50%;
margin: 0;
max-height: 100%;
max-width: 100%;
padding: 0;
position: absolute;
top: 50%;
transform: translate( -50%, -50% );
width: auto;
}
.jetpack-simple-payments-title p,
.jetpack-simple-payments-price p {
font-weight: bold;
}
.jetpack-simple-payments-purchase-box {
align-items: flex-start;
display: flex;
}
.jetpack-simple-payments-items {
flex: 0 0 auto;
margin-right: 10px;
}
input[type='number'].jetpack-simple-payments-items-number {
background: var( --color-white );
font-size: 16px;
line-height: 1;
max-width: 60px;
padding: 4px 8px;
}
@media screen and ( min-width: 400px ) {
.jetpack-simple-payments-product {
flex-direction: row;
}
.jetpack-simple-payments-product-image + .jetpack-simple-payments-details {
flex-basis: 70%;
padding-left: 1em;
}
}
|