ruffle/web/packages/extension/assets/css/player.css

125 lines
2.0 KiB
CSS

body {
position: absolute;
inset: 0;
padding: 0;
margin: 0;
font-family: Lato, sans-serif;
font-size: 100%;
display: flex;
flex-direction: column;
background: black;
}
#nav {
width: 100%;
background: var(--ruffle-blue);
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
color: white;
padding: 8px 16px;
box-sizing: border-box;
}
#nav > * {
display: flex;
gap: 16px;
}
.logo {
height: 32px;
flex: 0 0 content;
}
.select-container > div {
display: flex;
align-items: center;
gap: 4px;
}
#web-url {
width: min(40vw, 500px);
}
#local-file {
display: none;
}
#local-file-name {
font-size: smaller;
}
#toggle-info,
#reload-swf {
cursor: pointer;
}
#main {
position: relative;
flex: 1;
display: flex;
flex-direction: row;
}
#player-container {
overflow-y: hidden;
flex-grow: 1;
}
#player-container > * {
position: relative;
width: 100%;
height: 100%;
}
#overlay {
pointer-events: none;
border: 8px dashed var(--ruffle-orange);
border-radius: 30px;
opacity: 0;
transition: opacity 0.3s ease-in;
box-sizing: border-box;
z-index: 1;
}
#overlay.drag {
opacity: 1;
transition-timing-function: ease-out;
}
#overlay:not([hidden]) ~ #player {
bottom: 100%;
}
#info-container {
width: 300px;
background-color: var(--ruffle-blue);
padding: 4px 16px;
flex-direction: column;
gap: 8px;
box-sizing: border-box;
}
#info-container span:first-child {
text-shadow: 0 0 1px white;
}
#info-container span:first-child::after {
content: ":";
}
#info-container span:last-child {
float: right;
}
/* TODO: Make metadata element IDs kebab-case, and convert back and forth
between that and the camelCase of metadata JS object keys. */
/* stylelint-disable-next-line selector-id-pattern */
#backgroundColor {
width: 1em;
height: 1em;
border: 2px solid var(--ruffle-dark-blue);
background-color: white;
}