riseup-squad23/src/components/botaoacessibilidade.css

203 lines
5.4 KiB
CSS

@import url('https://fonts.cdnfonts.com/css/open-dyslexic');
[vw-access-button] {
display: none !important;
}
.container-acessibilidade {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 10000;
}
.botao-flutuante-acessibilidade {
width: 60px;
height: 60px;
border-radius: 50%;
background-color: #007bff;
color: white;
border: none;
box-shadow: 0 4px 8px rgba(0,0,0,0.2);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}
.menu-opcoes {
position: absolute;
bottom: 70px;
right: 0;
width: 280px;
max-height: calc(100vh - 100px);
overflow-y: auto;
background-color: white;
border-radius: 8px;
box-shadow: 0 6px 12px rgba(0,0,0,0.3);
display: flex;
flex-direction: column;
gap: 8px;
padding: 15px;
transform: scale(0.95);
transform-origin: bottom right;
opacity: 0;
visibility: hidden;
transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s;
}
.menu-opcoes.aberto {
transform: scale(1);
opacity: 1;
visibility: visible;
}
.menu-titulo {
font-size: 18px;
font-weight: bold;
margin-bottom: 10px;
text-align: center;
color: #333;
}
.menu-opcoes button,
.checkbox-label-button {
width: 100%;
padding: 12px;
border-radius: 6px;
border: 1px solid #ddd;
background-color: #f9f9f9;
cursor: pointer;
text-align: left;
display: flex;
align-items: center;
gap: 10px;
font-size: 15px;
color: #333;
transition: background-color 0.2s;
}
.menu-opcoes button:hover,
.checkbox-label-button:hover {
background-color: #f0f0f0;
}
.checkbox-label-button input[type="checkbox"] {
margin-left: auto;
width: 20px;
height: 20px;
cursor: pointer;
}
/* Tamanho da Fonte */
.font-size-control {
display: flex;
flex-direction: column;
padding: 10px;
background-color: rgba(0, 0, 0, 0.05);
border-radius: 8px;
margin-bottom: 5px;
gap: 10px;
}
.font-size-label {
display: flex;
align-items: center;
gap: 8px;
font-weight: 600;
font-size: 15px;
}
.font-size-buttons {
display: flex;
justify-content: space-between;
align-items: center;
}
.font-size-buttons button {
border-radius: 50%;
width: 38px;
height: 38px;
border: 1px solid #ddd;
background-color: #fff;
font-size: 16px;
font-weight: bold;
cursor: pointer;
color: #333;
display: flex;
align-items: center;
justify-content: center;
padding: 0;
}
.font-size-buttons span {
font-size: 16px;
font-weight: 600;
min-width: 50px;
text-align: center;
}
/* Fonte para Dislexia */
.dyslexia-font-active * {
font-family: 'Open-Dyslexic', sans-serif !important;
}
/* Espaçamento e Altura */
.letter-spacing-active p, .letter-spacing-active li, .letter-spacing-active span, .letter-spacing-active a, .letter-spacing-active div, .letter-spacing-active td, .letter-spacing-active h1, .letter-spacing-active h2, .letter-spacing-active h3, .letter-spacing-active h4, .letter-spacing-active h5, .letter-spacing-active h6 {
letter-spacing: 1.5px !important;
}
.line-height-active p, .line-height-active li, .line-height-active span, .line-height-active a, .line-height-active div, .line-height-active td, .line-height-active h1, .line-height-active h2, .line-height-active h3, .line-height-active h4, .line-height-active h5, .line-height-active h6 {
line-height: 3 !important;
}
/* Guia de Leitura */
.reading-guide-mask {
position: fixed;
left: 0;
width: 100%;
background: rgba(0, 0, 0, 0.7);
z-index: 99999;
pointer-events: none;
transition: all 0.05s ease-out;
}
.reading-guide-top {
top: 0;
height: 0;
}
.reading-guide-bottom {
bottom: 0;
top: 100vh;
}
/* Cursor Grande */
.big-cursor-active, .big-cursor-active * {
cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill="black" stroke="white" stroke-width="2" d="M13.64,21.97C13.14,22.21 12.54,22 12.31,21.5L10.13,16.76L7.62,18.78C7.45,18.92 7.24,19 7,19A1,1 0 0,1 6,18V4A1,1 0 0,1 7,3C7.24,3 7.45,3.08 7.62,3.22L16.39,10.22C16.78,10.5 16.88,11.05 16.6,11.45L13.64,21.97Z" /></svg>') 1 1, auto !important;
}
/* Filtros de Daltonismo */
.colorblind-protanopia { filter: url(#protanopia); }
.colorblind-deuteranopia { filter: url(#deuteranopia); }
.colorblind-tritanopia { filter: url(#tritanopia); }
.colorblind-achromatopsia { filter: url(#achromatopsia); }
.acessibilidade-select-control {
display: flex;
flex-direction: column;
gap: 8px;
background-color: rgba(0, 0, 0, 0.05);
padding: 10px;
border-radius: 8px;
margin-bottom: 5px;
}
.acessibilidade-select-control label {
display: flex;
align-items: center;
gap: 8px;
font-weight: 600;
font-size: 15px;
}
.acessibilidade-select-control select {
width: 100%;
padding: 8px;
border-radius: 4px;
border: 1px solid #ccc;
font-size: 14px;
}
/* Dark Mode */
.dark-mode .menu-opcoes { background-color: #2d2d2d; color: #f1f1f1; }
.dark-mode .menu-titulo { color: #f1f1f1; }
.dark-mode .menu-opcoes button, .dark-mode .checkbox-label-button { background-color: #424242; border-color: #555; color: #f1f1f1; }
.dark-mode .menu-opcoes button:hover, .dark-mode .checkbox-label-button:hover { background-color: #535353; }
.dark-mode .font-size-control, .dark-mode .acessibilidade-select-control { background-color: rgba(255, 255, 255, 0.1); }
.dark-mode .font-size-buttons button { background-color: #535353; color: #f1f1f1; border-color: #666; }
.dark-mode .acessibilidade-select-control select { background-color: #535353; color: #f1f1f1; border-color: #666; }