Utilisateur:Ankhseram/Style.css : Différence entre versions

 
(64 révisions intermédiaires par le même utilisateur non affichées)
Ligne 8 : Ligne 8 :
 
}
 
}
  
#characters-container > *:hover {
+
svg.svg-delete-monster {
   outline: 2px lightgreen solid;
+
  transform: rotate(45deg);
 +
  fill: red;
 +
   transition: transform .4s, fill .4s;
 
}
 
}
  
 +
svg.svg-delete-monster:hover {
 +
  fill: red;
 +
}
 +
 +
#characters-container > * {
 +
  border: 1px grey solid;
 +
}
 +
 +
#characters-container > *:hover,
 
#characters-container > *:focus {
 
#characters-container > *:focus {
   outline: 2px lightgreen solid;
+
   border: 1px #651e10 dashed;
 
}
 
}
  
 
#characters-container > .selected-character {
 
#characters-container > .selected-character {
   outline: 2px green solid;
+
   border: 2px #651e10 solid;
 
}
 
}
  
Ligne 38 : Ligne 49 :
 
   border-radius: 3px;
 
   border-radius: 3px;
 
   margin-left: 0;
 
   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;
 
 
}
 
}
  
Ligne 58 : Ligne 57 :
 
}
 
}
  
input:focus:not([type='checkbox']),
+
#character-creation input[type='number'] {
 +
  display: inline-block;
 +
  vertical-align: middle;
 +
  margin-right: 10px;
 +
  width: 45px;
 +
  height: 20px;
 +
  border: 1px solid #ccc;
 +
  border-radius: 3px;
 +
  appearance: none;
 +
}
 +
 
 +
#character-creation input:focus:not([type='checkbox']),
 
select:focus {
 
select:focus {
   border-color: #66afe9;
+
   border: 1px rgb(102, 175, 233) solid;
 
   box-shadow: inset 0 1px 1px rgba(0,0,0,.075),
 
   box-shadow: inset 0 1px 1px rgba(0,0,0,.075),
 
               0 0 8px rgba(102, 175, 233, 0.6);
 
               0 0 8px rgba(102, 175, 233, 0.6);
 
}
 
}
  
.improved-collapsible {
+
#weapon-category label {
   display: grid;
+
   position: relative;
 +
  padding-left: 0;
 
}
 
}
  
.improved-collapsible > .mw-collapsible-toggle {
+
#weapon-category .cadreFenetre {
   grid-area: 1 / -1;
+
   position: absolute;
   display: flex;
+
  z-index: 100;
   justify-content: flex-end;
+
   pointer-events: none;
   align-items: center;
+
   width: max-content;
   float: initial;
+
  color: black;
   z-index: 1;
+
  top: 0;
   padding-right: 5px;
+
   left: 50%;
 +
   transform: translate(-50%, -100%);
 +
   white-space: normal;
 +
   opacity: 0;
 
}
 
}
  
.improved-collapsible > :nth-child(2) {
+
#weapon-category .cadreFenetre {
   grid-area: 1 / -1;
+
   text-align: center;
   padding: 5px 10px;
+
   margin: 0;
   background: #1f0e02;
+
   color: white;
   color: #f1de8e;
+
   text-shadow: #000000 1px 1px, #000000 -1px 1px,
  border: 1px solid #fece58;
+
              #000000 -1px -1px, #000000 1px -1px;
  border-radius: 5px;
 
}
 
 
 
.improved-collapsible > .mw-collapsible-content {
 
  grid-area: 2 / -1;
 
 
}
 
}
  
 
.improved-collapsible.custom-js > .mw-collapsible-content {
 
.improved-collapsible.custom-js > .mw-collapsible-content {
   max-height: 0;
+
   display: grid;
   transition: max-height 0.2s ease-out;
+
   transition: grid-template-rows 0.2s ease-out;
 
}
 
}
  
.improved-collapsible .mw-collapsible-toggle:before {
+
input[type='radio'] {
   content: "";
+
  position: absolute;
 +
  opacity: 0;
 +
  width: 0;
 +
   height: 0;
 
}
 
}
  
.improved-collapsible .mw-collapsible-text {
+
input[type='radio'] + img {
  display: none;
+
   cursor: pointer;
}
 
 
 
.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='%23f1de8e' 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 {
+
input[type='radio']:hover + img {
   transform: rotate(-180deg);
+
   background: rgba(0, 0, 0, .05);
 +
  outline: 2px solid rgba(0, 0, 0, .2);
 
}
 
}
  
@keyframes save {
+
input[type='radio']:checked + img {
   0% {
+
   background: rgba(0, 0, 0, .05);
    width: 100%;
+
   outline: 2px solid green;
    background-color: #ffdd40;
 
  }
 
  50% {
 
    width: 0;
 
   }
 
  100% {
 
    width: 100%;
 
    background-color: lightgreen;
 
  }
 
 
}
 
}
  
Ligne 137 : Ligne 132 :
 
   width: 24px;
 
   width: 24px;
 
   margin: 0 5px;
 
   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;
 
   cursor: pointer;
 
}
 
}
Ligne 147 : Ligne 140 :
 
   border-radius: 8px;
 
   border-radius: 8px;
 
   padding: 10px;
 
   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 {
+
.drop-zone {
    content: "";
+
  border: 2px dashed #651e10;
    border: 8px solid transparent;
+
}
    border-top-color: inherit;
+
 
    position: absolute;
+
.drop-zone--dragover,
    left: calc(50% - 8px);
+
.drop-zone:hover,
    top: 100%;
+
.drop-zone:focus {
    z-index: 50;
+
  border-style: solid;
 +
}
 +
 
 +
button#add-new-character {
 +
  background: #651e10;
 +
}
 +
 
 +
button#add-new-character:hover,
 +
button#add-new-character:focus {
 +
  background: #551a0e;
 +
}
 +
 
 +
button#add-new-character:active {
 +
  background: #45160c;
 +
}
 +
 
 +
button#save-character {
 +
  background: #2f9e44;
 +
  transition: background-color .4s
 +
}
 +
 
 +
button#save-character:hover {
 +
  background-color: #2b8a3e;
 +
}
 +
 
 +
button#save-character.unsaved-character {
 +
  background-color: #e3a008;
 
}
 
}
  
.tooltip-info {
+
button#save-character.unsaved-character:hover,
  opacity: 0;
+
button#save-character.unsaved-character:focus {
  visibility: hidden;
+
   background-color: #c27803;
   transition: opacity 0.3s ease, visibility 0.3s ease;
 
 
}
 
}
  
.tooltip-icon:hover > .tooltip-info {
+
.styled-button {
   opacity: 1;
+
  font-family: Arial, sans-serif;
   visibility: visible;
+
  box-sizing: border-box;
 +
  display: inline-block;
 +
  color: #ffffff;
 +
  border: none;
 +
  padding: 10px 12px;
 +
  font-weight: bold;
 +
  border-radius: 8px;
 +
  cursor: pointer;
 +
  transition: background-color 0.3s ease,
 +
  box-shadow 0.3s ease, transform 0.3s ease;
 +
  line-height: normal;
 +
  text-align: center;
 +
  user-select: none;
 +
  background-color: #ff6f61;
 +
   box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
 +
   min-width: 80px;
 
}
 
}
  
@media screen and (max-width: 768px){
+
.styled-button:hover {
   .tooltip-icon {
+
   background-color: #ff3b2e;
    position: static;
+
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
   }
+
   transform: translateY(-2px);
 +
}
  
  .tooltip-info {
+
.styled-button:active,
    position: fixed;
+
.styled-button.tabber-active {
    left: 20px;
+
  background-color: #cc4537;
    right: 20px;
+
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.1);
    top: 20px;
+
  transform: translateY(0);
    max-width: none;
+
   border: none;
    width: auto;
 
    transform: none;
 
    height: max-content;
 
   }
 
 
 
  .tooltip-info:after {
 
    display: none;
 
  }
 
 
}
 
}

Version actuelle datée du 30 mai 2024 à 12:27

svg.svg-icon:hover {
  fill: green;
  cursor: pointer;
}

svg.svg-icon-delete:hover {
  fill: red;
}

svg.svg-delete-monster {
  transform: rotate(45deg);
  fill: red;
  transition: transform .4s, fill .4s;
}

svg.svg-delete-monster:hover {
  fill: red;
}

#characters-container > * {
  border: 1px grey solid;
}

#characters-container > *:hover,
#characters-container > *:focus {
  border: 1px #651e10 dashed;
}

#characters-container > .selected-character {
  border: 2px #651e10 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;
}

input,
select {
  border-radius: 3px;
  border: 1px #cccccc solid;
}

#character-creation input[type='number'] {
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
  width: 45px;
  height: 20px;
  border: 1px solid #ccc;
  border-radius: 3px;
  appearance: none;
}

#character-creation input:focus:not([type='checkbox']),
select:focus {
  border: 1px rgb(102, 175, 233) solid;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075),
              0 0 8px rgba(102, 175, 233, 0.6);
}

#weapon-category label {
  position: relative;
  padding-left: 0;
}

#weapon-category .cadreFenetre {
  position: absolute;
  z-index: 100;
  pointer-events: none;
  width: max-content;
  color: black;
  top: 0;
  left: 50%;
  transform: translate(-50%, -100%);
  white-space: normal;
  opacity: 0;
}

#weapon-category .cadreFenetre {
  text-align: center;
  margin: 0;
  color: white;
  text-shadow: #000000 1px 1px, #000000 -1px 1px,
               #000000 -1px -1px, #000000 1px -1px;
}

.improved-collapsible.custom-js > .mw-collapsible-content {
  display: grid;
  transition: grid-template-rows 0.2s ease-out;
}

input[type='radio'] { 
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

input[type='radio'] + img {
  cursor: pointer;
}

input[type='radio']:hover + img {
  background: rgba(0, 0, 0, .05);
  outline: 2px solid rgba(0, 0, 0, .2);
}

input[type='radio']:checked + img {
  background: rgba(0, 0, 0, .05);
  outline: 2px solid green;
}

.tooltip-icon {
  position: relative;
  height: 24px;
  width: 24px;
  margin: 0 5px;
  cursor: pointer;
}

.tooltip-info {
  background-color: #F7EACC;
  border: 1px solid black;
  border-radius: 8px;
  padding: 10px;
}

.drop-zone {
  border: 2px dashed #651e10;
}

.drop-zone--dragover,
.drop-zone:hover,
.drop-zone:focus {
  border-style: solid;
}

button#add-new-character {
  background: #651e10;
}

button#add-new-character:hover,
button#add-new-character:focus {
  background: #551a0e;
}

button#add-new-character:active {
  background: #45160c;
}

button#save-character {
  background: #2f9e44;
  transition: background-color .4s
}

button#save-character:hover {
  background-color: #2b8a3e;
}

button#save-character.unsaved-character {
  background-color: #e3a008;
}

button#save-character.unsaved-character:hover,
button#save-character.unsaved-character:focus {
  background-color: #c27803;
}

.styled-button {
  font-family: Arial, sans-serif;
  box-sizing: border-box;
  display: inline-block;
  color: #ffffff;
  border: none;
  padding: 10px 12px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease,
  box-shadow 0.3s ease, transform 0.3s ease;
  line-height: normal;
  text-align: center;
  user-select: none;
  background-color: #ff6f61;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  min-width: 80px;
}

.styled-button:hover {
  background-color: #ff3b2e;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.styled-button:active,
.styled-button.tabber-active {
  background-color: #cc4537;
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(0);
  border: none;
}