Utilisateur:Ankhseram/Style.css : Différence entre versions
Ligne 83 : | Ligne 83 : | ||
padding: 5px 10px; | padding: 5px 10px; | ||
background: #e6d2a1; | background: #e6d2a1; | ||
− | |||
border: 1px solid black; | border: 1px solid black; | ||
border-radius: 5px; | border-radius: 5px; |
Version du 22 février 2024 à 00:11
svg.svg-icon:hover {
fill: green;
cursor: pointer;
}
svg.svg-icon-delete:hover {
fill: red;
}
#characters-container > *:hover {
outline: 2px lightgreen solid;
}
#characters-container > *:focus {
outline: 2px lightgreen solid;
}
#characters-container > .selected-character {
outline: 2px green solid;
}
#monster-list label {
display: block;
cursor: pointer;
}
#monster-list label:hover {
background: rgba(0, 0, 0, .1);
}
#monster-list input {
display: inline-block;
vertical-align: middle;
margin-right: 10px;
width: 20px;
height: 20px;
border: 1px solid #ccc;
border-radius: 3px;
margin-left: 0;
}
.saved-button .save-bar {
background-color: lightgreen;
}
.unsaved-button .save-bar {
background-color: #ffdd40;
}
.save-animation .save-bar {
animation: save .8s forwards;
}
input,
select {
border-radius: 3px;
border: 1px #cccccc solid;
}
input:focus:not([type='checkbox']),
select:focus {
border-color: #66afe9;
box-shadow: inset 0 1px 1px rgba(0,0,0,.075),
0 0 8px rgba(102, 175, 233, 0.6);
}
.improved-collapsible {
display: grid;
}
.improved-collapsible > .mw-collapsible-toggle {
grid-area: 1 / -1;
display: flex;
justify-content: flex-end;
align-items: center;
float: initial;
z-index: 1;
padding-right: 5px;
}
.improved-collapsible > :nth-child(2) {
grid-area: 1 / -1;
padding: 5px 10px;
background: #e6d2a1;
border: 1px solid black;
border-radius: 5px;
}
.improved-collapsible > .mw-collapsible-content {
grid-area: 2 / -1;
}
.improved-collapsible.custom-js > .mw-collapsible-content {
max-height: 0;
transition: max-height 0.2s ease-out;
}
.improved-collapsible .mw-collapsible-toggle:before {
content: "";
}
.improved-collapsible .mw-collapsible-text {
display: none;
}
.improved-collapsible .mw-collapsible-toggle:after {
width: 32px;
height: 32px;
content: "";
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000000' height='32' viewBox='0 -960 960 960' width='32'%3E%3Cpath d='M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z'/%3E%3C/svg%3E");
background-repeat: no-repeat;
transition: transform .2s ease-in-out;
}
.improved-collapsible .mw-collapsible-toggle-expanded:after {
transform: rotate(-180deg);
}
@keyframes save {
0% {
width: 100%;
background-color: #ffdd40;
}
50% {
width: 0;
}
100% {
width: 100%;
background-color: lightgreen;
}
}
.tooltip-icon {
position: relative;
height: 24px;
width: 24px;
margin: 0 5px;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' viewBox='0 -960 960 960' width='24'%3E%3Cpath d='M443-285h75v-234h-75v234Zm36.895-311Q496-596 507-606.895q11-10.894 11-27Q518-650 507.105-661q-10.894-11-27-11Q464-672 453-661.105q-11 10.894-11 27Q442-618 452.895-607q10.894 11 27 11ZM480-90q-80.907 0-152.065-30.763-71.159-30.763-123.797-83.5Q151.5-257 120.75-328.087 90-399.175 90-480q0-80.907 30.763-152.065 30.763-71.159 83.5-123.797Q257-808.5 328.087-839.25 399.175-870 480-870q80.907 0 152.065 30.763 71.159 30.763 123.797 83.5Q808.5-703 839.25-631.913 870-560.825 870-480q0 80.907-30.763 152.065-30.763 71.159-83.5 123.797Q703-151.5 631.913-120.75 560.825-90 480-90Zm0-75q131.5 0 223.25-91.75T795-480q0-131.5-91.75-223.25T480-795q-131.5 0-223.25 91.75T165-480q0 131.5 91.75 223.25T480-165Zm0-315Z'/%3E%3C/svg%3E");
background-repeat: no-repeat;
cursor: pointer;
}
.tooltip-info {
background-color: #F7EACC;
border: 1px solid black;
border-radius: 8px;
padding: 10px;
position: absolute;
bottom: calc(100% + 8px);
left: 50%;
transform: translateX(-50%);
max-width: 290px;
width: max-content;
z-index: 50;
}
.tooltip-info:after {
content: "";
border: 8px solid transparent;
border-top-color: inherit;
position: absolute;
left: calc(50% - 8px);
top: 100%;
z-index: 50;
}
.tooltip-info {
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease, visibility 0.3s ease;
}
.tooltip-icon:hover > .tooltip-info {
opacity: 1;
visibility: visible;
}
@media screen and (max-width: 768px){
.tooltip-icon {
position: static;
}
.tooltip-info {
position: fixed;
left: 20px;
right: 20px;
bottom: 20px;
max-width: none;
width: auto;
transform: none;
height: max-content;
}
.tooltip-info:after {
display: none;
}
}