ScoDoc/app/static/css/role_editor.css

78 lines
1.2 KiB
CSS
Raw Permalink Normal View History

2023-09-04 21:34:23 +02:00
.help {
margin-bottom: 24px;
}
.roles-editor {
2023-09-04 21:34:23 +02:00
background-color: #fffaf4;
border-radius: 8px;
font-size: 90%;
margin-bottom: 24px;
padding: 8px;
2023-09-04 21:34:23 +02:00
}
.re-row {
/* align-items: center; */
2023-09-04 21:34:23 +02:00
display: flex;
flex-wrap: nowrap;
2023-09-04 21:34:23 +02:00
gap: 4px;
margin-bottom: 8px;
}
.re-row-titres .role-standard {
font-weight: bold;
}
.re-row-perm {
transition: background-color 0.3s ease;
}
.re-row-perm:hover {
background-color: rgba(250, 250, 8, 0.816); /* Highlight color */
cursor: pointer;
}
.re-cell {
/* align-self: center; */
flex-basis: 40px;
flex-grow: 0;
flex-shrink: 0;
overflow-wrap: anywhere;
}
.permission-titre {
flex-basis: 210px;
flex-grow: 0;
flex-shrink: 0;
overflow-wrap: anywhere;
}
.role-titre {
transform: rotate(180deg) translate(60%, 0);
writing-mode: vertical-lr;
2023-09-04 21:34:23 +02:00
}
.role>div, .role span {
display: block;
padding: 4px 8px;
border: 1px solid #aaa;
border-radius: 4px;
}
.role input {
display: none;
}
.role input:checked:not([value=aucun])+span {
background: rgb(0, 141, 42);
border-color: rgb(0, 141, 42);
2023-09-04 21:34:23 +02:00
color: #fff;
}
.role>:nth-child(1) {
background: #09c;
border-color: #09c;
color: #fff;
}
.permission-roles label {
font-weight: normal;
}