123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261 |
- /* Variables */
- :root {
- --primary: #cc2929;
- --accent: #581111;
- --background: #111;
- --secondary: #272727;
- --tertiary: #424242;
- --lightGrey: #999;
- --white: #fff;
- }
- /* Window Styling */
- html,
- body {
- background-color: var(--background);
- color: var(--white);
- min-width: 310px;
- min-height: 350px;
- padding: 0.5em;
- font-family: "Roboto", Arial, Helvetica, sans-serif;
- font-size: 14px;
- }
- h1 {
- font-size: 26px;
- }
- button {
- color: var(--white);
- background: var(--secondary);
- cursor: pointer;
- padding: 5px 16px;
- border: none;
- border-radius: 4px;
- font-weight: 500;
- /* box-shadow: 0 2px 4px -1px rgb(0 0 0 / 20%), 0 4px 5px 0 rgb(0 0 0 / 14%),
- 0 1px 10px 0 rgb(0 0 0 / 12%); */
- transition: 0.4s;
- }
- button:hover {
- background: #444;
- }
- #ext-version {
- padding: 0.25rem 0.5rem;
- }
- #ext-update {
- cursor: pointer;
- color: var(--white);
- text-decoration: none;
- background: var(--primary);
- border-radius: 0.25rem;
- }
- #ext-update:hover {
- text-decoration: underline;
- }
- #ext {
- padding: 0.25rem 0;
- z-index: 69;
- position: fixed;
- background: var(--secondary);
- margin: 0;
- bottom: 1.15rem;
- right: 1.15rem;
- border-radius: 0.25rem;
- }
- .switch::before,
- .label-with-hover-tip::before {
- content: attr(data-hover);
- visibility: hidden;
- opacity: 0;
- transition: visibility 0.1s linear, opacity 0.1s linear;
- width: 250px;
- background-color: var(--secondary);
- border-radius: 0.5rem;
- padding: 0.5rem;
- position: absolute;
- z-index: 1;
- left: 0;
- top: 160%;
- }
- .switch:hover::before,
- .label-with-hover-tip:hover::before {
- visibility: visible;
- opacity: 1;
- }
- .fade-in {
- opacity: 1;
- animation-name: fadeInOpacity;
- animation-iteration-count: 1;
- animation-timing-function: ease-in;
- animation-duration: 2s;
- }
- @keyframes fadeInOpacity {
- 0% {
- opacity: 0;
- }
- 100% {
- opacity: 1;
- }
- }
- #advancedToggle {
- position: fixed;
- background: none;
- box-shadow: none;
- color: var(--lightGrey);
- top: 26px;
- right: 26px;
- padding: 2px;
- z-index: 69;
- height: 2rem;
- width: 2rem;
- }
- #advancedToggle:hover {
- color: var(--white);
- transform: rotate(-90deg);
- }
- #advancedToggle:active {
- transform: scale(1.5);
- }
- #advancedSettings {
- opacity: 0;
- pointer-events: none;
- transition-duration: 0.15s;
- transition-timing-function: ease-in-out;
- transform: scale(1.1);
- position: fixed;
- background: var(--background);
- top: 10px;
- right: 14px;
- width: calc(100% - 65px);
- height: calc(100% - 58px);
- border: 2px solid var(--secondary);
- border-radius: 0.5rem;
- padding: 1rem;
- overflow-y: auto;
- overflow-x: hidden;
- }
- ::-webkit-scrollbar {
- width: 1rem;
- }
- ::-webkit-scrollbar-track {
- background: #111; /* color of the tracking area */
- }
- ::-webkit-scrollbar-thumb {
- background-color: #333; /* color of the scroll thumb */
- border-radius: 1rem 0 0 1rem; /* roundness of the scroll thumb */
- border-bottom: 0.25rem solid #111; /* creates padding around scroll thumb */
- border-left: 0.25rem solid #111; /* creates padding around scroll thumb */
- border-top: 0.25rem solid #111; /* creates padding around scroll thumb */
- }
- ::-webkit-scrollbar-thumb:hover {
- background-color: #f22; /* color of the scroll thumb */
- border-radius: 1rem 0 0 1rem; /* roundness of the scroll thumb */
- border-bottom: 0.25rem solid #111; /* creates padding around scroll thumb */
- border-left: 0.25rem solid #111; /* creates padding around scroll thumb */
- border-top: 0.25rem solid #111; /* creates padding around scroll thumb */
- }
- #advancedLegend {
- color: var(--tertiary) !important;
- /* margin: auto; */ /* Center the label */
- /* padding: .25rem .5rem; */
- /* border-radius: .25rem; */
- /* border: .25rem solid var(--secondary); */
- }
- /* Switches */
- .switch {
- position: relative;
- display: inline-block;
- width: 30px;
- height: 17px;
- margin-bottom: 1rem;
- }
- .label-with-hover-tip {
- position: relative;
- display: inline-block;
- width: 80px;
- height: 17px;
- margin-bottom: 1rem;
- }
- .switch:last-of-type {
- margin-bottom: 0;
- }
- .switch input {
- display: none;
- }
- .slider {
- position: absolute;
- cursor: pointer;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background: var(--secondary);
- transition: 0.4s;
- border-radius: 34px;
- }
- .slider::before {
- position: absolute;
- content: "";
- height: 13px;
- width: 13px;
- left: 2px;
- bottom: 2px;
- background: var(--lightGrey);
- transition: 0.4s;
- border-radius: 50%;
- }
- input:checked + .slider {
- background: var(--accent);
- }
- input:checked + .slider::before {
- transform: translateX(13px);
- background: var(--primary);
- }
- .switchLabel {
- margin-left: 0.5rem;
- width: 250px !important;
- transform: translateX(35px);
- display: inline-block;
- }
- #server-status {
- height: 72px;
- width: 90px;
- /* filter: invert(21%) sepia(100%) saturate(3618%) hue-rotate(102deg)
- brightness(96%) contrast(108%); */
- }
- .container {
- display: flex;
- flex-direction: column;
- align-items: center;
- }
|