nxemu/lang/english/css/config.css

508 lines
9.6 KiB
CSS

html {
var(color-config-page): #0f1a2c;
var(color-config-page-border): #1f2e48;
var(color-control-background): #0b1424;
var(color-control-border): #26385a;
var(color-control-hover): #132138;
var(color-control-disabled): #0a101b;
var(color-control-disabled-text): #56637a;
var(color-tab-background): #111d31;
var(color-tooltip-background): #16233a;
var(color-tooltip-border): #2c4166;
}
div.ConfigPage
{
padding: 0.5rem 0.7rem 0 0.7rem;
background: color(color-dialog-background);
flow: horizontal;
width: *;
height: *;
}
popup.tooltip
{
background: color(color-tooltip-background);
border: 1px solid color(color-tooltip-border);
border-radius: 6px;
padding: 0.5rem;
color: color(color-ui-text-primary);
font-family: var(font-ui), Arial, sans-serif;
font-size: 0.8rem;
}
.config-header button
{
padding: 0.15rem;
margin: 0 0 0 0.3rem;
}
.tabs {
display: flex;
font-size: 0;
}
.tab-button {
background: color(color-tab-background);
border: 1px solid color(color-config-page-border);
border-bottom: 1px solid color(color-config-page-border);
border-top: 2px solid transparent;
border-radius: 6px 6px 0 0;
color: color(color-ui-text-muted);
font-family: var(font-ui), Arial, sans-serif;
font-size: 0.8rem;
padding: 0.25rem 1.1rem;
margin: 0 0.2rem -1px 0;
position: relative;
z-index: 2;
min-width: 2rem;
}
.tab-button:hover {
background: color(color-control-hover);
color: color(color-ui-text-primary);
}
.tab-button.active,
.tab-button:visited {
background: color(color-config-page);
border-color: color(color-config-page-border);
border-top: 2px solid color(color-accent);
border-bottom: 1px solid color(color-config-page);
color: color(color-ui-text-primary);
}
.input-group
{
position: relative;
background-color: color(color-config-page);
border: 1px solid color(color-config-page-border);
border-radius: 6px;
padding: 1.2rem 0.6rem 0.5rem 0.6rem;
margin: 0 0 1rem 0;
flow: vertical;
}
.input-grid-directional {
text-align: center;
flow: grid( 1 1, 2 3, 4 4, 5 6, 7 7, 8 8);
padding: 0.5rem 0 0;
}
.group-title
{
position: absolute;
top: -0.5rem;
left: 0;
margin: 0 auto;
background-color: color(color-config-page);
padding: 0 6px;
font-size: 0.8rem;
font-weight: 600;
color: color(color-ui-text-primary);
}
.input-row
{
display: inline-block;
position: relative;
background-color: color(color-config-page);
border: 1px solid color(color-config-page-border);
padding: 0.4em 0.2rem 0.2rem 0.2rem;
border-radius: 4px;
margin: 0 * 0.9rem *;
width: *;
}
.input-row span
{
position: absolute;
top: -0.7rem;
left: 0;
margin: 0 auto;
background-color: color(color-config-page);
padding: 0 6px;
font-size: 0.8rem;
color: color(color-ui-text-muted);
}
.input-row button
{
min-width: 3.8rem;
height: 1.4rem;
}
#ConfigContents {
width: *;
height: *;
color: color(color-ui-text-primary);
}
@set styled-select < std-select-dropdown {
:root {
color: color(color-ui-text-primary);
padding: 0.2em 0.3em;
margin: 0 0 0.3em 0;
width: *;
border: 1px solid color(color-control-border);
border-radius: 6px;
background: color(color-control-background);
}
:root:disabled,
:root[disabled] {
background-color: color(color-control-disabled) !important;
color: color(color-control-disabled-text) !important;
border-color: color(color-config-page-border) !important;
cursor: not-allowed;
opacity: 0.6;
}
:root:focus,
:root:active,
:root:hover
{
border-color: color(color-accent);
}
:root:hover {
background: color(color-control-hover);
}
:root > popup.list {
background-color: color(color-config-page);
border: 1px solid color(color-control-border);
border-radius: 6px;
color: color(color-ui-text-primary);
}
:root option {
vertical-align: middle;
padding: 0.3em 0.5em;
}
:root option:hover {
background: color(color-control-hover);
}
:root option:current {
background: color(color-accent);
color: #ffffff;
}
:root > button {
fill: color(color-ui-text-muted);
}
}
select:not([type]) {
style-set: styled-select;
}
ComboBox,
ComboBox > select,
ListBox,
ListBox > select
{
display: block;
width: *;
}
input[type="checkbox"] {
appearance:none;
height: 1em;
width: 1em;
border: 1px solid #4a5b78;
background: color(color-control-background);
border-radius: 0.25em;
margin: 0 0.3em 0 0;
}
input[type="checkbox"]:hover {
border-color: color(color-accent);
}
input[type="checkbox"]:disabled,
input[type="checkbox"][disabled]
{
background-color: color(color-control-disabled) !important;
opacity: 0.4;
}
input[type="checkbox"]:checked {
background: no-repeat 50% 50%;
background-color: color(color-accent);
background-image: url(stock:checkmark);
background-size: 0.7em;
border-color: color(color-accent);
fill: #ffffff;
}
input[type="text"] {
color: color(color-ui-text-primary);
padding: 0.2em 0.3em;
margin: 0 0 0.3em 0;
width: *;
border: 1px solid color(color-control-border);
border-radius: 6px;
background: color(color-control-background);
}
input[type="text"]:disabled,
input[type="text"][disabled] {
background-color: color(color-control-disabled) !important;
color: color(color-control-disabled-text) !important;
border-color: color(color-config-page-border) !important;
cursor: not-allowed;
opacity: 0.6;
}
input[type="text"]:focus,
input[type="text"]:active
{
border-color: color(color-accent);
}
input[type="text"]:hover {
background: color(color-control-hover);
}
input[type="text"]:disabled:hover,
input[type="text"][disabled]:hover {
background-color: color(color-control-disabled) !important;
}
label:disabled {
color: color(color-control-disabled-text) !important;
opacity: 0.6;
}
.hotkeys-page
{
width: *;
min-height: 12em;
}
.hotkeys-hint
{
color: color(color-ui-text-muted);
font-size: 0.85rem;
margin-bottom: 0.75rem;
}
.page_content.profiles-page
{
flow: vertical;
width: *;
height: *;
padding: 1em;
}
.active-profile-label
{
margin: 0 0 0.65rem 0;
color: color(color-ui-text-primary);
font-size: 0.9rem;
}
.profile-grid
{
flow: horizontal-wrap;
border: 1px solid color(color-config-page-border);
border-radius: 6px;
background: color(color-control-background);
padding: 0.5rem;
width: *;
height: *;
overflow-y: auto;
vertical-align: top;
}
.profile-tile
{
position: relative;
width: 96px;
margin: 0.35rem;
padding: 0.25rem;
border: 2px solid transparent;
border-radius: 5px;
flow: vertical;
horizontal-align: center;
cursor: pointer;
behavior: clickable;
}
.profile-tile:hover
{
background: color(color-control-hover);
}
.profile-tile.current
{
background: color(color-accent-soft);
border: 2px solid color(color-accent);
}
.profile-tile.current > .profile-tile-name
{
color: #ffffff;
font-weight: 600;
}
.profile-tile-avatar
{
width: 96px;
height: 96px;
border-radius: 4px;
background: color(color-control-background);
overflow: hidden;
foreground-repeat: no-repeat;
foreground-position: 50% 50%;
foreground-size: 100% 100%;
}
.profile-tile-avatar img
{
display: block;
width: 96px;
height: 96px;
background: transparent;
foreground-repeat: no-repeat;
foreground-position: 50% 50%;
foreground-size: 100% 100%;
}
.profile-tile-name
{
width: 90px;
margin-top: 0.35rem;
text-align: center;
color: color(color-ui-text-primary);
font-size: 0.85rem;
overflow-x: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.profile-tile-edit
{
position: absolute;
top: 0.35rem;
right: 0.35rem;
width: 24px;
height: 24px;
border-radius: 12px;
background: color(color-tab-background);
border: none;
color: #ffffff;
padding: 0;
z-index: 2;
opacity: 0;
visibility: hidden;
behavior: clickable;
cursor: pointer;
overflow: hidden;
}
.profile-tile-edit svg
{
position: absolute;
left: 5px;
top: 5px;
width: 14px;
height: 14px;
}
.profile-tile-edit path
{
fill: none;
stroke: currentColor;
}
.profile-tile:hover > .profile-tile-edit
{
opacity: 1;
visibility: visible;
}
.profile-tile-edit:hover
{
background: color(color-control-hover);
}
.profile-tile-add
{
position: relative;
width: 96px;
height: 118px;
margin: 0.35rem;
border-radius: 5px;
background: color(color-tab-background);
cursor: pointer;
behavior: clickable;
}
.profile-tile-add-button
{
position: absolute;
left: 27px;
top: 38px;
width: 42px;
height: 42px;
border-radius: 21px;
background: color(color-control-background);
border: 1px solid color(color-control-border);
color: color(color-ui-text-primary);
font-size: 1.6rem;
font-family: var(font-ui), Arial, sans-serif;
line-height: 40px;
text-align: center;
padding: 0;
overflow: hidden;
behavior: clickable;
cursor: pointer;
}
.profile-tile-add-button:hover
{
background: color(color-control-hover);
border: 1px solid color(color-accent);
}
.hotkeys-table
{
width: *;
min-width: 28em;
border-collapse: collapse;
font-size: 0.9rem;
}
.hotkeys-table thead tr
{
background: color(color-tab-background);
}
.hotkeys-table th,
.hotkeys-table td
{
border: 1px solid color(color-config-page-border);
padding: 0.35rem 0.75rem;
text-align: left;
vertical-align: middle;
}
.hotkeys-table th:last-child,
.hotkeys-table td.hotkey-binding
{
text-align: right;
min-width: 16em;
white-space: nowrap;
}
.hotkey-action
{
width: *;
}
.hotkey-binding
{
cursor: pointer;
font-family: Consolas, 'Segoe UI', monospace;
}
.hotkey-binding:hover
{
background: color(color-control-hover);
}