You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openNG/public/css/components.css

175 lines
4.7 KiB
CSS

.viewManager {
width: 100%; }
.windowManager {
position: absolute;
left: 0px;
right: 0px;
top: 0px;
bottom: 0px;
display: grid;
grid-template-rows: auto 1fr; }
.windowManager .windowSpace {
position: relative; }
.windowManager .fixedAreas {
position: absolute;
top: 0px;
bottom: 0px;
left: 0px;
right: 0px;
display: flex; }
.windowManager .fixedAreas .sidebar {
min-width: 80px;
overflow-y: auto;
background-color: rgba(0, 0, 0, 0.5);
border-color: #121b26;
border-width: 1px; }
.windowManager .fixedAreas .sidebar.side-left {
left: 0px;
border-right-style: solid; }
.windowManager .fixedAreas .sidebar.side-right {
right: 0px;
border-left-style: solid;
margin-left: auto; }
.windowManager .fixedAreas .sidebar.highlight {
background-color: rgba(9, 14, 54, 0.5);
border-color: #0d4c99; }
.windowManager .fixedAreas .sidebar .window {
position: static;
/* FIXME: Below 19px should become 9px, once there's a way to account for the scrollbar that may be visible. */
margin: 4px 19px 0px 9px; }
.window {
position: fixed;
left: 0px;
top: 0px;
display: grid;
grid-template-rows: auto 1fr;
box-shadow: 5px 5px 10px #1a1a1a;
opacity: 0.95; }
.window, .window .titleBar {
border-top-left-radius: 10px;
border-top-right-radius: 10px; }
.window .titleBar {
display: grid;
grid-template-columns: 1fr auto;
user-select: none;
-ms-user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
cursor: default;
border: 1px solid #959595;
border-bottom: none;
padding: 4px;
padding-left: 7px;
background: linear-gradient(to bottom, #525252 0%, #91acbe 100%); }
.window .titleBar .title {
padding-top: 1px;
color: white;
font-size: 14px;
font-weight: bold;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap; }
.window .titleBar .buttons {
display: flex;
margin-left: 8px; }
.window .titleBar .buttons .button {
padding: 2px;
border: 1px solid #526371;
border-radius: 5px;
color: white;
font-weight: bold; }
.window .titleBar .buttons .button:hover {
background-color: #555f68;
border: 1px solid #ada8a8; }
.window .titleBar .buttons .button.close {
font-size: 12px;
line-height: 1; }
.window .body {
position: relative;
font-size: 14px;
background-color: #F7F7F0;
border: 1px solid gray;
border-top: none; }
.window .body .content {
overflow-x: auto;
overflow-y: auto;
padding: 7px;
/* FIXME: Is this needed here? */
font-size: 13px; }
.window .body .resizer {
user-select: none;
-ms-user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
position: absolute;
/* FIXME: Make the below values configurable? */
bottom: -8px;
right: -8px;
width: 16px;
height: 16px;
cursor: se-resize; }
.window .body .resizer:hover .arrow {
position: relative;
left: -4px;
top: -4px;
width: 0px;
height: 0px;
border-style: solid;
border-width: 0px 0px 12px 12px;
border-color: transparent transparent rgba(0, 109, 201, 0.8) transparent; }
.window.active .titleBar {
background: linear-gradient(to bottom, #0057b3 0%, #0099ff 100%);
border-color: #6262FF; }
.window.active .titleBar .buttons .button {
border: 1px solid #014D8C; }
.window.active .titleBar .buttons .button:hover {
background-color: #0e5c9c;
border: 1px solid #7ab0e6; }
#notificationArea {
position: absolute;
right: 0px;
bottom: 32px;
z-index: 2147483640;
display: flex;
flex-direction: column; }
.notification {
display: inline-block;
border-radius: 6px;
margin-right: 19px;
margin-top: 10px;
padding: 9px 14px;
color: white;
font-size: 15px;
filter: alpha(opacity=85);
opacity: 0.85;
width: auto;
min-width: 220px; }
.notification .closeButton {
float: right;
margin-top: -4px;
margin-right: -6px;
margin-left: 6px;
margin-bottom: 4px;
padding: 4px 6px;
opacity: 0.6;
border-radius: 3px;
cursor: default; }
.notification .closeButton:hover {
opacity: 1;
background-color: rgba(30, 30, 30, 0.6); }
.notification .header {
margin-right: 6px;
font-weight: bold;
margin-bottom: 6px; }
.notification .contents ul {
margin: 4px 0px;
padding-left: 48px; }
.notification.type-info {
background-color: #2D2D2D; }
.notification.type-error {
background-color: #371B1B; }