mirror of
https://github.com/G2-Games/website.git
synced 2025-04-19 18:02:54 -05:00
224 lines
4.6 KiB
CSS
224 lines
4.6 KiB
CSS
/* Set up the window style */
|
|
.window {
|
|
width: 550px;
|
|
min-width: 200px;
|
|
min-height: 200px;
|
|
max-width: 100vw;
|
|
max-height: 100vh;
|
|
|
|
padding: 30px 3px 5px 3px;
|
|
background-color: #fff8;
|
|
border-radius: 5px;
|
|
border: 0.5px solid white;
|
|
box-shadow: 2px 2px 2px, 0px 0px 3px;
|
|
position: absolute;
|
|
backdrop-filter: blur(6px);
|
|
background-size: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.active-window {
|
|
background-image: url("images/window-styles/aero-glass.png");
|
|
}
|
|
|
|
.window-outline {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: auto;
|
|
height: 100%;
|
|
box-sizing: border-box;
|
|
border-radius: 1px;
|
|
outline: 0.5px solid black;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.window-content {
|
|
width: auto;
|
|
height: 100%;
|
|
box-sizing: border-box;
|
|
color: black;
|
|
border-radius: 1px;
|
|
outline: 0.5px solid black;
|
|
padding: 8px;
|
|
box-shadow: 0 0 0 0.8px white;
|
|
background-color: #ffffff;
|
|
background-size: 100%;
|
|
position: relative;
|
|
}
|
|
|
|
.title-bar {
|
|
height: 30px;
|
|
display: flex;
|
|
-moz-user-select: -moz-none;
|
|
-khtml-user-select: none;
|
|
-webkit-user-select: none;
|
|
-o-user-select: none;
|
|
user-select: none;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
}
|
|
|
|
.action-bar {
|
|
height: 24px;
|
|
display: flex;
|
|
width: 100%;
|
|
background-image: url("images/window-styles/action-bar-bg.png");
|
|
background-size: contain;
|
|
image-rendering: crisp;
|
|
border-radius: 1px 0px 0px 1px;
|
|
border-bottom: 1px solid lightgrey;
|
|
}
|
|
|
|
.action-button {
|
|
width: max-content;
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
background: none;
|
|
border: none;
|
|
box-shadow: none;
|
|
font-family: "Segoe UI", sans-serif;
|
|
padding-left: 7.5px;
|
|
padding-right: 7.5px;
|
|
border: 1px solid transparent;
|
|
}
|
|
|
|
.action-button:hover {
|
|
background: linear-gradient(0deg, rgba(242,242,242,0) 0%, rgba(218,218,218,0.654) 50%, rgba(163,163,163,0) 100%);
|
|
border: 1px solid grey;
|
|
}
|
|
|
|
.action-button:active {
|
|
box-shadow: inset 0 0 4px grey;
|
|
backdrop-filter: brightness(0.9);
|
|
}
|
|
|
|
.dialog-image {
|
|
height: 3em;
|
|
float: left;
|
|
margin-right: 10px;
|
|
aspect-ratio: 1;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.dialog-text {
|
|
line-height: 1.5em;
|
|
vertical-align: top;
|
|
color: #002fb4;
|
|
font-size: 1.1em;
|
|
}
|
|
|
|
.dialog-button {
|
|
|
|
}
|
|
|
|
/* Set up the window bar styles */
|
|
.window-controls {
|
|
position: relative;
|
|
margin-left: auto;
|
|
top: 0px;
|
|
right: 5px;
|
|
width: fit-content;
|
|
height: 20px;
|
|
background-color: #0000;
|
|
border-radius: 0 0 5px 5px;
|
|
border: 0.5px solid white;
|
|
border-top: none;
|
|
box-shadow: 0 0.2px 1px black, 0.2px 0 1px black, -0.2px 0 1px black;
|
|
clip-path: inset(0px -10px -10px -10px);
|
|
image-rendering: smooth;
|
|
cursor: url('images/cursors/windows7_link.webp'), auto;
|
|
overflow: hidden;
|
|
display: flex;
|
|
}
|
|
|
|
.close {
|
|
width: 47px;
|
|
height: 20px;
|
|
border-radius: 0 0 5px 0;
|
|
background-image: url("images/window-styles/close-button.png");
|
|
background-size: 100% 100%;
|
|
position: relative;
|
|
right: 0;
|
|
top: 0;
|
|
transition-duration: 0.1s;
|
|
clip-path: inset(0px -10px -10px 0px);
|
|
clip-path: inset(0px 0px -10px -10px);
|
|
}
|
|
|
|
.close:hover {
|
|
box-shadow: 0px 0px 5px red;
|
|
filter: saturate(130%);
|
|
}
|
|
|
|
.fullscreen {
|
|
width: 26px;
|
|
height: 20px;
|
|
background-image: url("images/window-styles/fullscreen-button.png");
|
|
background-size: 100% 100%;
|
|
position: relative;
|
|
top: 0;
|
|
transition-duration: 0.1s;
|
|
clip-path: inset(0px 0px -10px 0px);
|
|
}
|
|
|
|
.minimize {
|
|
width: 26px;
|
|
height: 20px;
|
|
background-image: url("images/window-styles/minimize-button.png");
|
|
background-size: 100% 100%;
|
|
position: relative;
|
|
top: 0;
|
|
transition-duration: 0.1s;
|
|
clip-path: inset(0px 0px -10px -10px);
|
|
}
|
|
|
|
.fullscreen:hover, .minimize:hover {
|
|
box-shadow: 0px 0px 5px #0fb3ff;
|
|
filter: saturate(500%);
|
|
}
|
|
|
|
.window-icon {
|
|
position: relative;
|
|
left: 5px;
|
|
width: 24px;
|
|
height: 24px;
|
|
top: 3px;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.window-title {
|
|
position: relative;
|
|
font-size: 0.9em;
|
|
top: 3px;
|
|
margin-left: 10px;
|
|
height: 30px;
|
|
padding: auto 0;
|
|
pointer-events: none;
|
|
text-shadow: 0 0 2px 2px white;
|
|
}
|
|
|
|
.maximized {
|
|
position: absolute;
|
|
top: 0!important;
|
|
left: 0!important;
|
|
width: 100%!important;
|
|
height: calc(100% - 50px)!important;
|
|
border-radius: 0;
|
|
border: none;
|
|
resize: none!important;
|
|
transform: none!important;
|
|
box-sizing: border-box;
|
|
transition-duration: 0.2s;
|
|
}
|
|
|
|
.minimized {
|
|
transition-duration: 0.4s;
|
|
opacity: 0;
|
|
width: 60px!important;
|
|
top: 100%!important;
|
|
left: 0!important;
|
|
}
|