Files
lcp-monetizer/assets/css/admin.css
Jeremy Rangel d672947964 Initial
2025-01-09 23:23:49 -08:00

165 lines
2.7 KiB
CSS

.lcp-post-type-rules {
background: #fff;
padding: 20px;
margin: 20px 0;
border: 1px solid #ccd0d4;
box-shadow: 0 1px 1px rgba(0,0,0,.04);
}
.post-type-settings {
background: #f9f9f9;
padding: 15px;
margin-bottom: 20px;
border: 1px solid #e5e5e5;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 15px;
}
.setting-group {
display: flex;
flex-direction: column;
gap: 5px;
}
.setting-group label {
font-weight: 600;
}
.setting-group input[type="number"] {
width: 100px;
}
/* Toggle Switch */
.switch {
position: relative;
display: inline-block;
width: 50px;
height: 24px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
transition: .4s;
border-radius: 24px;
}
.slider:before {
position: absolute;
content: "";
height: 16px;
width: 16px;
left: 4px;
bottom: 4px;
background-color: white;
transition: .4s;
border-radius: 50%;
}
input:checked + .slider {
background-color: #2271b1;
}
input:checked + .slider:before {
transform: translateX(26px);
}
.lcp-rules-container {
margin: 15px 0;
min-height: 50px;
border: 1px solid #ddd;
padding: 10px;
background: #f8f8f8;
}
.lcp-rule {
background: #fff;
border: 1px solid #ddd;
margin-bottom: 10px;
padding: 15px;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.lcp-rule.ui-sortable-helper {
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.rule-header {
display: flex;
align-items: center;
margin-bottom: 15px;
padding-bottom: 10px;
border-bottom: 1px solid #eee;
}
.rule-header .dashicons-menu {
cursor: move;
color: #666;
margin-right: 15px;
font-size: 20px;
}
.rule-header .delete-rule {
margin-left: auto;
color: #dc3232;
border: none;
background: none;
cursor: pointer;
padding: 0;
}
.rule-header .delete-rule:hover {
color: #aa0000;
}
.rule-body {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 10px;
align-items: start;
}
.rule-body select {
width: 100%;
max-width: 200px;
}
.add-rule {
margin-top: 10px !important;
margin-bottom: 20px !important;
}
#save-rules {
margin-top: 20px;
}
.post-type-actions {
display: flex;
gap: 10px;
margin-top: 15px;
padding-top: 15px;
border-top: 1px solid #ddd;
}
.post-type-actions .button {
height: 35px;
line-height: 33px;
padding: 0 15px;
}
.save-post-type-rules {
margin-left: auto;
}