Skip to content

Commit 11299d7

Browse files
committed
Adjust styles for compatibility across themes
1 parent ce1c5d3 commit 11299d7

File tree

2 files changed

+41
-10
lines changed

2 files changed

+41
-10
lines changed

modules/ppcp-axo-block/resources/css/gateway.scss

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,23 +59,30 @@ $fast-transition-duration: 0.5s;
5959
&__meta {
6060
width: 100%;
6161
text-align: left;
62-
padding: 10px 15px;
62+
padding: 15px;
6363
display: flex;
6464
gap: 15px;
6565

6666
&-digits {
67-
font-size: 1.1em;
68-
width: 100%;
67+
font-size: 18px;
68+
line-height: 1em;
6969
color: #666;
7070
font-family: monospace;
7171
font-weight: bold;
72+
width: 100%;
7273
}
7374

7475
&-logo {
75-
align-self: center;
7676
width: 60px;
77+
align-self: center;
7778
flex-grow: 1;
7879
flex-shrink: 0;
80+
81+
img {
82+
max-width: 100%;
83+
display: block;
84+
margin: 0;
85+
}
7986
}
8087

8188
&-name {
@@ -86,14 +93,22 @@ $fast-transition-duration: 0.5s;
8693
position: absolute;
8794
right: 10px;
8895
transform: translateX(50%);
89-
color: #ECEEF2;
96+
color: #6d6d6d;
9097
}
9198
}
99+
100+
&-name,
101+
&-expiry {
102+
font-size: 16px;
103+
line-height: 1em;
104+
color: #6d6d6d;
105+
}
92106
}
93107

94108
&__meta-container {
95109
display: flex;
96110
flex-wrap: wrap;
111+
row-gap: .5em;
97112
}
98113

99114
&__edit {

modules/ppcp-axo/resources/css/styles.scss

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,27 +121,36 @@
121121
background-color: #F8F9FA;
122122
border: 2px solid #ECEEFE;
123123
text-align: left;
124-
padding: 10px 15px;
124+
padding: 15px;
125125
display: flex;
126126
gap: 15px;
127127

128128
.ppcp-card-icon-wrapper {
129-
align-self: center;
130129
width: 60px;
130+
align-self: center;
131+
flex-grow: 1;
131132
flex-shrink: 0;
133+
134+
img {
135+
max-width: 100%;
136+
display: block;
137+
margin: 0!important;
138+
}
132139
}
133140

134141
.axo-card-meta-wrapper {
135142
display: flex;
136143
flex-wrap: wrap;
144+
row-gap: .5em;
137145
}
138146

139147
.axo-card-number {
140-
font-size: 1.1em;
141-
width: 100%;
148+
font-size: 18px;
149+
line-height: 1em;
142150
color: #666;
143151
font-family: monospace;
144152
font-weight: bold;
153+
width: 100%;
145154
}
146155

147156
.axo-card-owner {
@@ -152,9 +161,16 @@
152161
position: absolute;
153162
right: 10px;
154163
transform: translateX(50%);
155-
color: #ECEEF2;
164+
color: #6d6d6d;
156165
}
157166
}
167+
168+
.axo-card-owner,
169+
.axo-card-expiry{
170+
font-size: 16px;
171+
color: #6d6d6d;
172+
line-height: 1em;
173+
}
158174
}
159175
}
160176

0 commit comments

Comments
 (0)