mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
756 lines
16 KiB
CSS
756 lines
16 KiB
CSS
@import url("layout.css");
|
|
@import url("airbases.css");
|
|
@import url("contextmenu.css");
|
|
@import url("units.css");
|
|
|
|
/* Variables definitions */
|
|
:root {
|
|
--accent-green: #8bff63;
|
|
--accent-light-blue: #5ca7ff;
|
|
--background-grey: #3d4651;
|
|
--background-offwhite: #f2f2f3;
|
|
--background-steel: #202831;
|
|
--primary-blue: #247be2;
|
|
--primary-grey: #CFD9E8;
|
|
--primary-red: #ff5858;
|
|
--secondary-blue-outline: #082e44;
|
|
--secondary-dark-steel: #181e25;
|
|
--secondary-gunmetal-grey: #2f2f2f;
|
|
--secondary-light-grey: #797e83;
|
|
--secondary-neutral: #111111;
|
|
--secondary-red-outline: #262222;
|
|
--secondary-yellow: #ffd46893;
|
|
--nav-text: #ECECEC;
|
|
|
|
--ol-select-secondary: #545F6C;
|
|
|
|
--border-radius-xs: 2px;
|
|
--border-radius-sm: 5px;
|
|
--border-radius-md: 10px;
|
|
--border-radius-lg: 15px;
|
|
|
|
--font-weight-bolder: 600;
|
|
|
|
|
|
}
|
|
|
|
|
|
* {
|
|
-moz-box-sizing: border-box;
|
|
-webkit-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
|
|
html {
|
|
font-family: 'Open Sans', sans-serif;
|
|
}
|
|
|
|
|
|
button {
|
|
background-color: var(--background-steel);
|
|
border: 1px solid var(--background-steel);
|
|
border-radius: var(--border-radius-sm);
|
|
color: whitesmoke;
|
|
cursor: pointer;
|
|
font-weight: var(--font-weight-bolder);
|
|
padding: 6px;
|
|
}
|
|
|
|
button[disabled="disabled"] {
|
|
color: var(--highlight-color);
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
|
|
.pill {
|
|
background-color: var( --background-darksteel );
|
|
border-radius: var(--border-radius-sm);
|
|
padding: 4px 8px;
|
|
width: fit-content;
|
|
}
|
|
|
|
|
|
.ol-panel {
|
|
background-color: var(--background-steel);
|
|
border-radius: 15px;
|
|
box-shadow: 0px 2px 5px #000A;
|
|
color: white;
|
|
font-size: 12px;
|
|
height: fit-content;
|
|
padding: 10px;
|
|
width: fit-content;
|
|
}
|
|
|
|
.ol-panel hr {
|
|
background-color: var(--secondary-light-grey);
|
|
border: none;
|
|
height: 1px;
|
|
margin: 20px 0;
|
|
width: 100%;
|
|
}
|
|
|
|
.ol-panel-padding-lg {
|
|
padding: 24px 30px;
|
|
}
|
|
|
|
.ol-select-container {
|
|
width: 100%;
|
|
}
|
|
|
|
.ol-select {
|
|
position: relative;
|
|
color: var(--nav-text);
|
|
}
|
|
|
|
.ol-select>.ol-select-value {
|
|
align-content: center;
|
|
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
|
|
cursor: pointer;
|
|
display: flex;
|
|
justify-content: left;
|
|
text-align: center;
|
|
white-space: nowrap;
|
|
width: 100%;
|
|
}
|
|
|
|
.ol-select:not(.ol-select-image)>.ol-select-value {
|
|
align-items: center;
|
|
background-color: var(--background-grey);
|
|
border-radius: var(--border-radius-sm);
|
|
padding: 1em;
|
|
width: 100%;
|
|
padding-left: 20px;
|
|
padding-right: 30px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.ol-select:not(.ol-select-image)>.ol-select-value svg {
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.ol-select:not(.ol-select-image)>.ol-select-value:after {
|
|
position: absolute;
|
|
content: url("/themes/olympus/images/chevron-down.svg");
|
|
right: 10px;
|
|
}
|
|
|
|
.ol-select>.ol-select-options {
|
|
position: absolute;
|
|
overflow: hidden;
|
|
max-height: 0;
|
|
translate: 0 -2px;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.ol-select.ol-select-image>.ol-select-options {
|
|
position: absolute;
|
|
}
|
|
|
|
|
|
.ol-select.is-open > .ol-select-options {
|
|
max-height: fit-content;
|
|
overflow: visible;
|
|
overflow-y: auto;
|
|
padding: 8px 0;
|
|
min-width: 100%;
|
|
}
|
|
|
|
|
|
|
|
|
|
.ol-select>.ol-select-options>div {
|
|
background-color: var(--background-grey);
|
|
box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
|
|
display: flex;
|
|
justify-content: left;
|
|
padding: 6px 25px;
|
|
width: 100%;
|
|
}
|
|
|
|
.ol-select>.ol-select-options>div:first-of-type {
|
|
border-top-left-radius: var(--border-radius-md);
|
|
border-top-right-radius: var(--border-radius-md);
|
|
padding-top: 16px;
|
|
}
|
|
|
|
.ol-select>.ol-select-options>div:last-of-type {
|
|
border-bottom-left-radius: var(--border-radius-md);
|
|
border-bottom-right-radius: var(--border-radius-md);
|
|
padding-bottom: 16px;
|
|
}
|
|
|
|
.ol-select>.ol-select-options div hr {
|
|
background-color: white;
|
|
height: 1px;
|
|
width: 100%;
|
|
}
|
|
|
|
.ol-select>.ol-select-options div button {
|
|
background-color: transparent;
|
|
border: none;
|
|
border-radius: 0;
|
|
font-size: 14px;
|
|
font-weight: normal;
|
|
padding: 6px 2px;
|
|
text-align: left;
|
|
white-space: nowrap;
|
|
width: 100%;
|
|
}
|
|
|
|
.ol-select>.ol-select-options>div button:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.ol-select>.ol-select-options::-webkit-scrollbar {
|
|
width: 10px;
|
|
}
|
|
|
|
.ol-select>.ol-select-options::-webkit-scrollbar-track {
|
|
background-color: transparent;
|
|
border-radius: 100px;
|
|
}
|
|
|
|
.ol-select>.ol-select-options::-webkit-scrollbar-thumb {
|
|
background-color: white;
|
|
border-radius: 100px;
|
|
opacity: 0.8;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
|
|
.ol-panel-list {
|
|
border-radius: var(--border-radius-sm);
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: fit-content;
|
|
row-gap: 5px;
|
|
text-align: center;
|
|
width: fit-content;
|
|
}
|
|
|
|
.ol-panel-list .list-item {
|
|
border-radius: var(--border-radius-md);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 6px 10px;
|
|
}
|
|
|
|
.ol-panel-list.sortable>.sortable-item {
|
|
align-items: center;
|
|
column-gap: 5px;
|
|
display: flex;
|
|
flex-direction: row;
|
|
}
|
|
|
|
.ol-panel-list.sortable>.sortable-item>.handle {
|
|
cursor: grab;
|
|
filter: invert(100);
|
|
}
|
|
|
|
.ol-panel-list.sortable>.sortable-item>.handle img {
|
|
max-width: 16px;
|
|
}
|
|
|
|
|
|
.ol-panel-board {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-evenly;
|
|
}
|
|
|
|
.ol-panel-board > .panel-section {
|
|
border-right: 1px solid #555;
|
|
margin:10px 0;
|
|
padding:0 30px;
|
|
}
|
|
|
|
.ol-panel-board > .panel-section:first-child {
|
|
padding-left:20px;
|
|
}
|
|
|
|
.ol-panel-board > .panel-section:last-child {
|
|
padding-right:20px;
|
|
}
|
|
|
|
.ol-panel-board > .panel-section:last-of-type {
|
|
border-right-width: 0;
|
|
}
|
|
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6 {
|
|
margin: 0px;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 36px;
|
|
font-weight: 800;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 24px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 18px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
h4 {
|
|
font-size: 14px;
|
|
font-weight: normal;
|
|
}
|
|
|
|
button.ol-button-warning {
|
|
border: 1px solid var(--primary-red);
|
|
color: var(--primary-red);
|
|
}
|
|
|
|
|
|
nav.ol-panel {
|
|
column-gap: 20px;
|
|
display: flex;
|
|
flex-direction: row;
|
|
height: 58px;
|
|
}
|
|
|
|
nav.ol-panel> :last-child {
|
|
margin-right: 5px;
|
|
}
|
|
|
|
|
|
.ol-panel .ol-group {
|
|
border-radius: var(--border-radius-sm);
|
|
column-gap: 10px;
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: nowrap;
|
|
row-gap: 4px;
|
|
}
|
|
|
|
.ol-panel .ol-group.wrap {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
|
|
.ol-panel .ol-group-button-toggle {
|
|
align-items: center;
|
|
column-gap: 15px;
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
white-space: nowrap;
|
|
width: fit-content;
|
|
}
|
|
|
|
.ol-panel .ol-group-button-toggle button {
|
|
background-position: 5px 50%;
|
|
background-repeat: no-repeat;
|
|
border: 0;
|
|
display:flex;
|
|
justify-items: left;
|
|
text-indent: 5px;
|
|
}
|
|
|
|
.ol-panel .ol-group-button-toggle button::before {
|
|
background-image: url("/images/icons/square-check-solid.svg");
|
|
background-repeat: no-repeat;
|
|
content: "";
|
|
filter: invert(100%);
|
|
-webkit-filter: invert(100%);
|
|
height:16px;
|
|
width:16px;
|
|
}
|
|
|
|
|
|
.ol-panel .ol-group-button-toggle button.off::before {
|
|
background-image: url("/images/icons/square-regular.svg");
|
|
}
|
|
|
|
|
|
|
|
|
|
.highlight-primary {
|
|
background-color: var(--secondary-light-grey);
|
|
}
|
|
|
|
.highlight-coalition, .highlight-neutral {
|
|
background-color: var(--primary-grey);
|
|
color: var(--secondary-gunmetal-grey)
|
|
}
|
|
|
|
.highlight-coalition[data-coalition="blue"], .highlight-bluefor {
|
|
background-color: var(--primary-blue);
|
|
color: white;
|
|
}
|
|
|
|
.highlight-coalition[data-coalition="red"], .highlight-redfor {
|
|
background-color: var(--primary-red);
|
|
color: white;
|
|
}
|
|
|
|
|
|
.accent-green {
|
|
color: var(--accent-green);
|
|
font-weight: var(--font-weight-bolder);
|
|
}
|
|
|
|
.accent-light-blue {
|
|
color: var(--accent-light-blue);
|
|
font-weight: var(--font-weight-bolder);
|
|
}
|
|
|
|
.accent-bluefor {
|
|
color: var(--primary-blue);
|
|
font-weight: var(--font-weight-bolder);
|
|
}
|
|
|
|
.accent-redfor {
|
|
color: var(--primary-red);
|
|
font-weight: var(--font-weight-bolder);
|
|
}
|
|
|
|
.accent-neutral {
|
|
color: var(--primary-grey);
|
|
font-weight: var(--font-weight-bolder);
|
|
}
|
|
|
|
|
|
|
|
.hide {
|
|
display: none !important;
|
|
}
|
|
|
|
.icon-small {
|
|
width: 20px;
|
|
padding: 2px;
|
|
filter: invert(100%);
|
|
}
|
|
|
|
.data-grid {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
|
|
.slider-container {
|
|
width: 100%;
|
|
}
|
|
|
|
.slider {
|
|
width: 100%;
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
height: 2px;
|
|
background: #d3d3d3;
|
|
outline: none;
|
|
opacity: 0.7;
|
|
-webkit-transition: .2s;
|
|
transition: opacity .2s;
|
|
margin-top: 10px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.slider:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
.slider::-webkit-slider-thumb {
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
width: 20px;
|
|
height: 20px;
|
|
background: gray;
|
|
cursor: pointer;
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.active .slider::-webkit-slider-thumb {
|
|
background: #5ca7ff;
|
|
}
|
|
|
|
.slider::-moz-range-thumb {
|
|
width: 20px;
|
|
height: 20px;
|
|
background: gray;
|
|
cursor: pointer;
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.active .slider::-moz-range-thumb {
|
|
background: #5ca7ff;
|
|
}
|
|
|
|
.main-logo {
|
|
width: 40px;
|
|
height: 40px;
|
|
}
|
|
|
|
.ol-measure-box {
|
|
position: absolute;
|
|
padding-left: 0.5em;
|
|
padding-right: 0.5em;
|
|
padding-top: 0.2em;
|
|
padding-bottom: 0.2em;
|
|
background-color: var(--background-steel);
|
|
border-radius: 999px;
|
|
width: fit-content;
|
|
height: fit-content;
|
|
text-align: center;
|
|
color: var(--primary-grey);
|
|
font-size: 12px;
|
|
z-index: 2000;
|
|
font-weight: var(--font-weight-bolder);
|
|
}
|
|
|
|
|
|
|
|
#unit-selection {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
#unit-selection #unit-identification {
|
|
align-items: center;
|
|
display: flex;
|
|
margin-bottom: 11px;
|
|
}
|
|
|
|
#unit-selection #unit-identification [data-object|="unit"] {
|
|
height: 28px;
|
|
margin-right: 6px;
|
|
width: 28px;
|
|
}
|
|
|
|
#unit-selection #unit-identification [data-object|="unit"] .unit-marker {
|
|
background-size: 28px 28px;
|
|
height: 28px;
|
|
width: 28px;
|
|
}
|
|
|
|
#unit-selection #unit-identification [data-object|="unit"] .unit-short-label {
|
|
font-size: 12px;
|
|
}
|
|
|
|
#unit-selection #unit-identification #unit-name {
|
|
background-color: transparent;
|
|
border: none;
|
|
color: white;
|
|
font-size: 16px;
|
|
font-weight: var(--font-weight-bolder);
|
|
outline: none;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
width: 150px;
|
|
}
|
|
|
|
#edit-unit-name {
|
|
background-image: url("/images/buttons/edit.svg");
|
|
background-repeat: no-repeat;
|
|
height: 14px;
|
|
margin-left: 10px;
|
|
width: 15px;
|
|
}
|
|
|
|
#unit-visibility-control {
|
|
align-items: center;
|
|
}
|
|
|
|
#unit-visibility-control button {
|
|
border: none;
|
|
height: 32px;
|
|
width: 32px;
|
|
}
|
|
|
|
#unit-visibility-control-aircraft {
|
|
background-image: var(--visibility-control-aircraft-visible-url);
|
|
}
|
|
|
|
body[data-hide-aircraft] #unit-visibility-control-aircraft {
|
|
background-image: var(--visibility-control-aircraft-hidden-url);
|
|
}
|
|
|
|
#unit-visibility-control-ground {
|
|
background-image: var(--visibility-control-ground-visible-url);
|
|
}
|
|
|
|
body[data-hide-ground] #unit-visibility-control-ground {
|
|
background-image: var(--visibility-control-ground-hidden-url);
|
|
}
|
|
|
|
#unit-visibility-control-sam {
|
|
background-image: var(--visibility-control-sam-visible-url);
|
|
}
|
|
|
|
body[data-hide-sam] #unit-visibility-control-sam {
|
|
background-image: var(--visibility-control-sam-hidden-url);
|
|
}
|
|
|
|
#unit-visibility-control-threat {
|
|
background-image: var(--visibility-control-threat-visible-url);
|
|
}
|
|
|
|
body[data-hide-threat] #unit-visibility-control-threat {
|
|
background-image: var(--visibility-control-threat-hidden-url);
|
|
}
|
|
|
|
#unit-visibility-control-naval {
|
|
background-image: var(--visibility-control-naval-visible-url);
|
|
}
|
|
|
|
body[data-hide-naval] #unit-visibility-control-naval {
|
|
background-image: var(--visibility-control-naval-hidden-url);
|
|
}
|
|
|
|
|
|
.toggle {
|
|
--width: 40px;
|
|
--height: calc(var(--width) / 2);
|
|
--border-radius: calc(var(--height) / 2);
|
|
|
|
display: inline-block;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.toggle-input {
|
|
display: none;
|
|
}
|
|
|
|
.toggle-fill {
|
|
position: relative;
|
|
width: var(--width);
|
|
height: var(--height);
|
|
border-radius: var(--border-radius);
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.toggle-fill::after {
|
|
content: "";
|
|
position: absolute;
|
|
top: 2;
|
|
left: 2;
|
|
height: calc(var(--height) - 4px);
|
|
width: calc(var(--height) - 4px);
|
|
background-color: #ffffff;
|
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
|
|
border-radius: var(--border-radius);
|
|
transition: transform 0.2s;
|
|
}
|
|
|
|
.toggle-input:checked ~ .toggle-fill::after {
|
|
transform: translateX(var(--height));
|
|
}
|
|
|
|
|
|
#roe-buttons-container button {
|
|
background-color:transparent;
|
|
border:1px solid var( --accent-light-blue );
|
|
}
|
|
|
|
#roe-buttons-container button.selected, #reaction-to-threat-buttons-container button.selected {
|
|
background-color: white;
|
|
border-color: white;
|
|
}
|
|
|
|
#roe-buttons-container button::before, #reaction-to-threat-buttons-container button::before {
|
|
background-repeat: no-repeat;
|
|
background-size:16px 16px;
|
|
content: "";
|
|
display:block;
|
|
height:16px;
|
|
width:16px;
|
|
}
|
|
|
|
|
|
|
|
#roe-buttons-container button[title="Free"]::before {
|
|
background-image: url( "/themes/olympus/images/icons_roe_free_light.svg");
|
|
}
|
|
|
|
#roe-buttons-container button[title="Designated free"]::before {
|
|
background-image: url( "/themes/olympus/images/icons_roe_stop_light.svg");
|
|
}
|
|
|
|
#roe-buttons-container button[title="Designated"]::before {
|
|
background-image: url( "/themes/olympus/images/icons_roe_stop_light.svg");
|
|
}
|
|
|
|
#roe-buttons-container button[title="Return"]::before {
|
|
background-image: url( "/themes/olympus/images/icons_roe_target_light.svg");
|
|
}
|
|
|
|
#roe-buttons-container button[title="Hold"]::before {
|
|
background-image: url( "/themes/olympus/images/icons_actions_nothing_light.svg");
|
|
}
|
|
|
|
#roe-buttons-container button[title="Free"].selected::before {
|
|
background-image: url( "/themes/olympus/images/icons_roe_free_dark.svg");
|
|
}
|
|
|
|
#roe-buttons-container button[title="Designated free"].selected::before {
|
|
background-image: url( "/themes/olympus/images/icons_roe_stop_dark.svg");
|
|
}
|
|
|
|
#roe-buttons-container button[title="Designated"].selected::before {
|
|
background-image: url( "/themes/olympus/images/icons_roe_stop_dark.svg");
|
|
}
|
|
|
|
#roe-buttons-container button[title="Return"].selected::before {
|
|
background-image: url( "/themes/olympus/images/icons_roe_target_dark.svg");
|
|
}
|
|
|
|
#roe-buttons-container button[title="Hold"].selected::before {
|
|
background-image: url( "/themes/olympus/images/icons_actions_nothing_dark.svg");
|
|
}
|
|
|
|
|
|
|
|
#reaction-to-threat-buttons-container button[title="None"]::before {
|
|
background-image: url( "/themes/olympus/images/icons_actions_nothing_light.svg");
|
|
}
|
|
|
|
#reaction-to-threat-buttons-container button[title="Passive"]::before {
|
|
background-image: url( "/themes/olympus/images/icons_roe_stop_light.svg");
|
|
}
|
|
|
|
#reaction-to-threat-buttons-container button[title="Evade"]::before {
|
|
background-image: url( "/themes/olympus/images/icons_roe_stop_light.svg");
|
|
}
|
|
|
|
#reaction-to-threat-buttons-container button[title="Escape"]::before {
|
|
background-image: url( "/themes/olympus/images/icons_threat_retreat_light.svg");
|
|
}
|
|
|
|
#reaction-to-threat-buttons-container button[title="Abort"]::before {
|
|
background-image: url( "/themes/olympus/images/icons_roe_stop_light.svg");
|
|
}
|
|
#reaction-to-threat-buttons-container button[title="None"]::before {
|
|
background-image: url( "/themes/olympus/images/icons_actions_nothing_light.svg");
|
|
}
|
|
|
|
|
|
#reaction-to-threat-buttons-container button[title="None"].selected::before {
|
|
background-image: url( "/themes/olympus/images/icons_actions_nothing_dark.svg");
|
|
}
|
|
|
|
#reaction-to-threat-buttons-container button[title="Passive"].selected::before {
|
|
background-image: url( "/themes/olympus/images/icons_roe_stop_dark.svg");
|
|
}
|
|
|
|
#reaction-to-threat-buttons-container button[title="Evade"].selected::before {
|
|
background-image: url( "/themes/olympus/images/icons_roe_stop_dark.svg");
|
|
}
|
|
|
|
#reaction-to-threat-buttons-container button[title="Escape"].selected::before {
|
|
background-image: url( "/themes/olympus/images/icons_threat_retreat_dark.svg");
|
|
}
|
|
|
|
#reaction-to-threat-buttons-container button[title="Abort"].selected::before {
|
|
background-image: url( "/themes/olympus/images/icons_roe_stop_dark.svg");
|
|
} |