| ... |
... |
@@ -124,26 +124,28 @@ |
| 124 |
124 |
.widgets { |
| 125 |
125 |
margin-top: 12px; |
| 126 |
126 |
|
| 127 |
|
- /* Flex layout = equal-height columns */ |
|
127 |
+ /* Flexbox makes Bootstrap columns equal height */ |
| 128 |
128 |
display: flex; |
| 129 |
129 |
flex-wrap: wrap; |
| 130 |
130 |
|
| 131 |
|
- /* Cancel Bootstrap's outer gutters so cards align with heading */ |
|
131 |
+ /* Remove default Bootstrap left/right gutters |
|
132 |
+ so cards align with the section heading */ |
| 132 |
132 |
margin-left: -15px; |
| 133 |
133 |
margin-right: -15px; |
| 134 |
134 |
|
|
136 |
+ /* Cards (inside columns) */ |
| 135 |
135 |
.widget { |
| 136 |
|
- /* Bootstrap grid classes (col-sm-6, col-md-3) still apply padding */ |
|
138 |
+ /* Bootstrap grid classes remain active (col-sm-6 col-md-3) */ |
| 137 |
137 |
display: flex; |
| 138 |
138 |
flex-direction: column; |
| 139 |
139 |
height: 100%; |
| 140 |
140 |
|
| 141 |
|
- /* Card design */ |
|
143 |
+ /* Card styling */ |
|
144 |
+ padding: 18px; |
| 142 |
142 |
background: #fff; |
| 143 |
143 |
border: 1px solid @line; |
| 144 |
144 |
border-radius: @radius; |
| 145 |
145 |
box-shadow: @shadow-sm; |
| 146 |
|
- padding: 18px; |
| 147 |
147 |
transition: transform .18s ease, box-shadow .18s ease; |
| 148 |
148 |
|
| 149 |
149 |
&:hover { |
| ... |
... |
@@ -151,6 +151,7 @@ |
| 151 |
151 |
box-shadow: @shadow; |
| 152 |
152 |
} |
| 153 |
153 |
|
|
156 |
+ /* Icon row */ |
| 154 |
154 |
.icon { |
| 155 |
155 |
display: flex; |
| 156 |
156 |
align-items: center; |
| ... |
... |
@@ -159,7 +159,9 @@ |
| 159 |
159 |
margin-bottom: 8px; |
| 160 |
160 |
border-bottom: 1px solid fade(@line, 60%); |
| 161 |
161 |
|
| 162 |
|
- i { color: @brand; } |
|
165 |
+ i { |
|
166 |
+ color: @brand; |
|
167 |
+ } |
| 163 |
163 |
|
| 164 |
164 |
h4 { |
| 165 |
165 |
margin: 0; |
| ... |
... |
@@ -168,16 +168,18 @@ |
| 168 |
168 |
} |
| 169 |
169 |
} |
| 170 |
170 |
|
|
176 |
+ /* Card text */ |
| 171 |
171 |
p { |
| 172 |
172 |
margin: 0; |
| 173 |
|
- color: @muted; |
| 174 |
174 |
line-height: 1.45; |
|
180 |
+ color: @muted; |
| 175 |
175 |
} |
| 176 |
176 |
} |
| 177 |
177 |
|
|
184 |
+ /* Mobile spacing */ |
| 178 |
178 |
@media (max-width: 767px) { |
| 179 |
179 |
.widget { |
| 180 |
|
- margin-bottom: 16px; /* spacing between stacked items */ |
|
187 |
+ margin-bottom: 16px; |
| 181 |
181 |
} |
| 182 |
182 |
} |
| 183 |
183 |
} |