Improve plugin card layout and responsiveness - Add flexbox for equal heights and better mobile layout
This commit is contained in:
@ -351,6 +351,8 @@ input:checked + .wp-toggle-slider:before {
|
|||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
.plugin-card:nth-child(2n+1) {
|
.plugin-card:nth-child(2n+1) {
|
||||||
@ -366,6 +368,9 @@ input:checked + .wp-toggle-slider:before {
|
|||||||
position: relative;
|
position: relative;
|
||||||
padding: 20px 20px 10px;
|
padding: 20px 20px 10px;
|
||||||
min-height: 135px;
|
min-height: 135px;
|
||||||
|
flex-grow: 1;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
.plugin-card .name,
|
.plugin-card .name,
|
||||||
@ -386,6 +391,7 @@ input:checked + .wp-toggle-slider:before {
|
|||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
color: #50575e;
|
color: #50575e;
|
||||||
|
flex-grow: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.plugin-card .plugin-card-bottom {
|
.plugin-card .plugin-card-bottom {
|
||||||
@ -526,28 +532,49 @@ input:checked + .wp-toggle-slider:before {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Responsive Adjustments */
|
/* Responsive Adjustments */
|
||||||
|
@media screen and (max-width: 1200px) {
|
||||||
|
.plugin-card .name,
|
||||||
|
.plugin-card .desc {
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.plugin-card .action-links {
|
||||||
|
position: static;
|
||||||
|
margin-left: 148px;
|
||||||
|
width: auto;
|
||||||
|
margin-top: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.plugin-card .action-links .button {
|
||||||
|
display: inline-block;
|
||||||
|
margin: 0 5px 5px 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 782px) {
|
@media screen and (max-width: 782px) {
|
||||||
.wp-allstars-header {
|
.plugin-card {
|
||||||
flex-direction: column;
|
|
||||||
align-items: flex-start;
|
|
||||||
}
|
|
||||||
|
|
||||||
.wp-allstars-header-actions {
|
|
||||||
margin-top: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-tab {
|
|
||||||
margin-bottom: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.wp-allstars-toggle .description {
|
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
margin-top: 10px;
|
margin-right: 0;
|
||||||
|
width: 100%;
|
||||||
|
clear: both;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wp-allstars-toggle-settings {
|
.plugin-card .name,
|
||||||
margin-top: 10px;
|
.plugin-card .desc {
|
||||||
padding: 12px;
|
margin-left: 0;
|
||||||
|
margin-top: 140px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.plugin-card .action-links {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.plugin-card .plugin-icon {
|
||||||
|
position: absolute;
|
||||||
|
top: 20px;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wpa-plugin-filters {
|
.wpa-plugin-filters {
|
||||||
@ -558,20 +585,18 @@ input:checked + .wp-toggle-slider:before {
|
|||||||
width: calc(50% - 4px);
|
width: calc(50% - 4px);
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wp-allstars-wrap {
|
|
||||||
padding-right: 10px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.wpa-settings-content {
|
@media screen and (max-width: 480px) {
|
||||||
padding: 0 10px;
|
.wpa-plugin-filters .button {
|
||||||
}
|
|
||||||
|
|
||||||
.plugin-card {
|
|
||||||
margin-left: 0;
|
|
||||||
margin-right: 0;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
clear: both;
|
}
|
||||||
|
|
||||||
|
.plugin-card .action-links .button {
|
||||||
|
display: block;
|
||||||
|
margin: 0 0 5px 0;
|
||||||
|
width: 100%;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user