1
0
mirror of https://github.com/psychopy/psychojs.git synced 2025-05-11 16:18:10 +00:00
psychojs/src/index.css

228 lines
3.2 KiB
CSS

html {
height: 100%;
}
body {
align-items: center;
display: flex;
height: 100%;
justify-content: center;
margin: 0;
}
/* Project and resource dialogs */
label,
input,
select {
box-sizing: border-box;
display: block;
padding-bottom: 0.5em;
}
input.text,
select.text {
margin-bottom: 1em;
padding: 0.5em;
width: 100%;
}
fieldset {
border: 0;
margin-top: 1em;
padding: 0;
}
a,
a:active,
a:focus,
a:visited {
color: #007eb7;
outline: 0;
}
a:hover {
color: #000;
}
.progress {
box-sizing: border-box;
padding: 0.5em 0;
}
.logo {
display: block;
margin: 0 auto 1em;
max-height: 20vh;
max-width: 100%;
}
.ui-dialog {
left: auto !important;
margin: auto;
max-width: 88vw;
position: relative;
top: auto !important;
}
/* Don't display close button in the top right corner of the box */
.ui-dialog.no-close .ui-dialog-titlebar-close {
display: none;
}
.ui-dialog .ui-dialog-content {
margin-top: 1em;
max-height: calc(100vh - 12em) !important;
overflow-y: auto;
}
.ui-dialog .ui-dialog-buttonpane {
/* Avoid padding related overflow */
box-sizing: border-box;
}
@media only screen and (max-width: 1080px) {
.ui-dialog .ui-dialog-buttonpane {
padding-top: 1em;
}
}
/* Initialisation message (which will disappear behind the canvas) */
#root::after {
content: "initialising the experiment...";
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.dialog-container,
.dialog-overlay {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
.dialog-container {
z-index: 2;
display: flex;
}
.dialog-container[aria-hidden='true'] {
display: none;
}
.dialog-overlay {
background-color: rgba(0, 0, 0, 0.2);
}
.dialog-content {
margin: auto;
z-index: 2;
position: relative;
width: 500px;
max-width: 88vw;
padding: 0.5em;
border-radius: 2px;
font-family: 'Open Sans', sans-serif;
color: #333333;
background-color: #EEEEEE;
border-color: #CCCCCC;
box-shadow: 1px 1px 3px #555555;
}
.dialog-title {
padding: 0.5em;
margin-bottom: 1em;
background-color: #009900;
border-radius: 2px;
}
.dialog-title p {
margin: 0;
padding: 0;
font-weight: bold;
}
.dialog-close {
position: absolute;
top: 0.7em;
right: 0.7em;
border: 0;
padding: 0;
border-radius: 2px;
width: 1.1em;
height: 1.1em;
color: #333333;
background-color: #FFFFFF;
font-weight: bold;
font-size: 1.25em;
text-align: center;
cursor: pointer;
transition: 0.15s;
}
.progress-msg {
box-sizing: border-box;
padding: 0.5em 0;
}
.progress-container {
padding: 0.2em;
border: 1px solid #555555;
border-radius: 2px;
background-color: #FFFFFF;
}
.progress-bar {
width: 0;
height: 1.5em;
background-color: #CCCCCC;
}
.dialog-button {
padding: 0.5em 1em 0.5em 1em;
margin: 0.5em 0.5em 0.5em 0;
border: 1px solid #555555;
border-radius: 2px;
font-size: 0.9em;
color: #000000;
background-color: #FFFFFF;
cursor: pointer;
}
.dialog-button:hover {
background-color: #EEEEEE;
}
.dialog-button:active {
background-color: #CCCCCC;
}
.dialog-button:focus {
border: 1px solid #000000;
}
.disabled {
border: 1px solid #AAAAAA;
color: #AAAAAA;
background-color: #EEEEEE;
cursor: not-allowed;
pointer-events: none;
}