/
Astartes1337
/
cal
Обзор
Документация
Войти
/
Astartes1337
/
cal
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/components/map/mapButtons.scss
230 строк
6 KB
sh4rkman
Improved translations
30 ноя 2025, 14:27
30 ноя 2025, 14:27
b1e6fa0
Код
Авторство
О чём код?
@use "../shared/variables"; #factionsTab { display: none; top: 20%; width: auto; height: auto; z-index: 1; position: absolute; } #factionsButton { width: 50px; padding: 0.5em; border: none; border-radius: 0 10px 10px 0; background: white; box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8); cursor: pointer; transition: background-color 0.2s ease, box-shadow 0.2s ease; font-weight: bold; text-align: center; z-index: 1; left: 0; &:hover { background-color: #b4b4b4; box-shadow: 2px 2px 6px rgba(0, 0, 0, 1); } button { margin: 2px 5px 0 0; width: 30px; height: 33px; background-color: transparent; color: #111; top: auto; cursor: pointer; svg { margin-top: 3px; height: 80%; } img { width: 33px; height: 20px; background-color: #111; box-shadow: 0 0 2px rgb(0, 0, 0); } } } #pinnedVehiclesTab { @extend .unselectable; flex-direction: column; width: auto; max-height: 75vh; margin-top: 0.5em; scrollbar-width: none; -ms-overflow-style: none; display: block; overflow: scroll; .pinnedVehicles { display: flex; flex-direction: row; align-items: center; border-radius: 0 4px 4px 0; padding: 2px; z-index: 1; margin-top: 4px; font-size: 0.8em; cursor: pointer; margin-bottom: 5px; border-left: none; width: fit-content; max-width: 35px; overflow: hidden; transition: background 1s ease, border-color 0.3s ease; white-space: nowrap; box-shadow: 0 4px 4px rgba(0,0,0,0.25); backdrop-filter: blur(6px); background: rgba(26, 26, 26, 0.6); &:active, &.active { background: linear-gradient(135deg, variables.$mainColor, variables.$mainColor); border-color: variables.$mainColor; box-shadow: 0 0 4px rgba(0, 0, 0, 1); min-width: 90px; font-size: 1em; .pinedVehiclesName { display: none; } } .btn-pined { width: 30px; height: 30px; margin-right: 8px; background: transparent; display: flex; align-items: center; justify-content: center; color: white; img { cursor: pointer; width: 30px; height: 30px; } } .pinedVehiclesMeta { display: flex; justify-content: space-between; align-items: center; margin-right: 5px; white-space: nowrap; .pinedVehiclesName { letter-spacing: 1px; flex-shrink: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pinedVehiclesTimer { flex-shrink: 0; font-size: 0.85em; text-align: left; white-space: nowrap; } } &.active, &:hover { max-width: 250px; .pinedVehiclesMeta { display: block; } } &:hover { font-size: 0.8em; .pinedVehiclesName { display: block; } } } } #mapLayerMenu { position: absolute; right: 0%; top: 20%; width: 40px; z-index: 1; height: auto; pointer-events: none; #sessionActions { display: none; flex-direction: row; width: 40px; .btn { &.btn-session-lock { height: auto; width: 50%; pointer-events: none; svg { width: 0.5em; } } &.btn-session-users { pointer-events: none; height: auto; width: 50%; font-size: 0.9em; background-color: variables.$mainColor; border-color: variables.$mainColor; color: white; svg { width: 0.5em; } } } } .btn { pointer-events: all; position: relative; width: 40px; height: 40px; margin: 0; color: variables.$mainBGColor; border-bottom: #979797 solid 1px; box-shadow: 0 2px 15px rgba(0,0,0,0.1); cursor: pointer; transition: all 0.25s ease-in-out; display: flex; align-items: center; justify-content: center; background-color: white; &:hover { background-color: #979797; svg { transform: scale(1.1); } } &.active { background-color: variables.$mainColor; border-top: variables.$mainColor; border-bottom: variables.$mainColor; svg path { fill: white; } } &:disabled { pointer-events: none; background-color: #888; svg path { fill: #383838; } } svg { height: 1em; fill: variables.$mainBGColor; } &.btn-topomap svg { width: 1.4em; height: 1.4em; } &.btn-session { z-index: 1; margin-top: 0; svg { height: 0.9em; } } } }