UNPKG

guify

Version:

A simple GUI for inspecting and changing JS variables

132 lines (108 loc) 2.68 kB
@import "../variables.css"; /* Container */ .guify-panel-container { position: absolute; background: var(--color-panel-background); } .guify-panel-container-scrollable { max-height: calc(100% - var(--size-menu-bar-height)); overflow: scroll; } /* Container modes (i.e. inner, outer) */ .guify-panel-container-right-inner { right: 0; left: unset; } .guify-panel-container-left-inner { right: unset; left: 0; } .guify-panel-container-right-outer { right: unset; left: 100%; } .guify-panel-container-left-outer { right: 100%; left: unset; } .guify-fullscreen .guify-panel-container-right-inner, .guify-fullscreen .guify-panel-container-right-outer { right: 0; left: unset; } .guify-fullscreen .guify-panel-container-left-inner, .guify-fullscreen .guify-panel-container-left-outer { right: unset; left: 0; } /* Panel (in container) */ .guify-panel { padding: 14px; /* Last component will have a margin, so reduce padding to account for this */ padding-bottom: calc(14px - var(--size-component-spacing)); /* all: initial; */ -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; cursor: default; text-align: left; box-sizing: border-box; } .guify-panel.guify-panel-hidden { height: 0px; display: none; } .guify-panel * { box-sizing: initial; -webkit-box-sizing: initial; -moz-box-sizing: initial; } .guify-panel input { display: inline; } .guify-panel a { color: inherit; text-decoration: none; } .guify-panel-toggle-button { position: absolute; top: 0; margin: 0; padding: 0; width: 15px; height: 15px; line-height: 15px; text-align: center; border: none; cursor: pointer; font-family: inherit; color: var(--color-text-primary); background-color: var(--color-component-background); -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } /* Open/Close button styling */ .guify-panel-toggle-button svg { fill-opacity: 0; stroke-width: 3; stroke: var(--color-component-foreground); } /* Remove browser default outlines since we're providing our own */ .guify-panel-toggle-button:focus { outline:none; } .guify-panel-toggle-button::-moz-focus-inner { border: 0; } .guify-panel-toggle-button:hover, .guify-panel-toggle-button:focus { color: var(--color-text-hover); background-color: var(--color-component-foreground); } .guify-panel-toggle-button:active { color: var(--color-text-active); background-color:var(--color-component-active); }