150 lines
2.6 KiB
CSS
150 lines
2.6 KiB
CSS
/**
|
|
* Styles pour l'interface admin des capacités de traduction
|
|
*/
|
|
|
|
/* Metabox des règles dépendantes */
|
|
.traduction-langue-child-rules {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.traduction-langue-child-rules h4 {
|
|
margin: 0 0 10px 0;
|
|
font-size: 13px;
|
|
color: #1d2327;
|
|
}
|
|
|
|
.traduction-langue-child-rules ul {
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
.traduction-langue-child-rules li {
|
|
margin: 0 0 8px 0;
|
|
padding: 8px;
|
|
background: #f6f7f7;
|
|
border-left: 3px solid #2271b1;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.traduction-langue-child-rules li a {
|
|
text-decoration: none;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.traduction-langue-child-rules li a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Bouton d'ajout de règle */
|
|
.traduction-langue-add-sub-rule {
|
|
margin-top: 15px;
|
|
}
|
|
|
|
.traduction-langue-add-sub-rule .spinner {
|
|
visibility: hidden;
|
|
margin: 0 0 0 10px;
|
|
}
|
|
|
|
.traduction-langue-add-sub-rule .spinner.is-active {
|
|
visibility: visible;
|
|
}
|
|
|
|
/* Modal */
|
|
#sub-rule-modal {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
z-index: 160000;
|
|
}
|
|
|
|
.sub-rule-modal-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.7);
|
|
}
|
|
|
|
.sub-rule-modal-content {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
background: #fff;
|
|
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
|
|
max-width: 500px;
|
|
width: 90%;
|
|
padding: 20px;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.sub-rule-modal-content h2 {
|
|
margin: 0 0 15px 0;
|
|
font-size: 18px;
|
|
line-height: 1.4;
|
|
color: #1d2327;
|
|
}
|
|
|
|
.sub-rule-modal-content p {
|
|
margin: 0 0 15px 0;
|
|
font-size: 13px;
|
|
line-height: 1.6;
|
|
color: #50575e;
|
|
}
|
|
|
|
.sub-rule-modal-content ul {
|
|
margin: 0 0 15px 20px;
|
|
padding: 0;
|
|
list-style: disc;
|
|
}
|
|
|
|
.sub-rule-modal-content li {
|
|
margin: 0 0 5px 0;
|
|
font-size: 13px;
|
|
line-height: 1.6;
|
|
color: #50575e;
|
|
}
|
|
|
|
.sub-rule-modal-actions {
|
|
margin-top: 20px;
|
|
text-align: right;
|
|
border-top: 1px solid #dcdcde;
|
|
padding-top: 15px;
|
|
}
|
|
|
|
.sub-rule-modal-actions .button {
|
|
margin-left: 8px;
|
|
}
|
|
|
|
/* Désactiver le scroll sur le body quand la modal est ouverte */
|
|
body.modal-open {
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Responsive */
|
|
@media screen and (max-width: 782px) {
|
|
.sub-rule-modal-content {
|
|
max-width: 90%;
|
|
padding: 15px;
|
|
}
|
|
|
|
.sub-rule-modal-content h2 {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.sub-rule-modal-actions {
|
|
text-align: center;
|
|
}
|
|
|
|
.sub-rule-modal-actions .button {
|
|
display: block;
|
|
width: 100%;
|
|
margin: 0 0 8px 0;
|
|
text-align: center;
|
|
}
|
|
}
|