xrfragment/example/assets/css/style.css

251 lines
4.3 KiB
CSS
Raw Normal View History

2023-04-21 12:37:23 +02:00
:root {
--primary: #6839dc;
--light-primary: #ea23cf;
--secondary: #872eff;
--light-secondary: #ce7df2;
--red: red;
--black: #424280;
--white: #fdfdfd;
--dark-gray: #343334;
--gray: #ecf7ff47;
--light-gray: #efefef;
--lighter-gray: #e4e2fb96;
--font-sans-serif: system-ui, -apple-system, segoe ui, roboto, ubuntu, helvetica, cantarell, noto sans, sans-serif;
--font-monospace: menlo, monaco, lucida console, liberation mono, dejavu sans mono, bitstream vera sans mono, courier new, monospace, serif;
--border-radius: 0.2rem;
}
.small{
font-size:12px;
}
2023-04-21 17:36:03 +02:00
textarea, select, input[type="text"] {
2023-04-28 16:04:32 +02:00
background: transparent; /* linear-gradient( var(--lighter-gray), var(--gray) ) !important; */
2023-04-21 12:37:23 +02:00
}
2023-04-21 17:36:03 +02:00
input[type="submit"] {
color: var(--light-gray);
}
2023-04-21 12:37:23 +02:00
.title {
border-bottom: 2px solid var(--secondary);
padding-bottom: 20px;
}
2023-04-21 17:36:03 +02:00
#overlay{
background: #FFF;
2023-05-09 17:42:29 +02:00
position: fixed;
2023-04-21 17:36:03 +02:00
top: 0;
left: 0;
width: 100%;
height: 48px;
box-shadow: 0px 0px 10px #0004;
opacity: 0.9;
2023-05-09 17:42:29 +02:00
z-index:2000;
2023-04-21 17:36:03 +02:00
}
#overlay .logo{
width: 92px;
position: absolute;
top: 7px;
left: 93px;
}
#overlay > input[type="submit"] {
2023-04-21 17:36:03 +02:00
height: 32px;
font-size: 14px;
position: absolute;
right: 9px;
top: 8px;
}
#overlay > button#navback,
#overlay > button#navforward {
height: 32px;
font-size: 14px;
position: absolute;
left: 9px;
padding: 2px 13px;
top: 8px;
color: var(--light-gray);
}
#overlay > button#navforward {
left:49px;
}
2023-04-28 16:04:32 +02:00
#overlay > #uri {
2023-05-18 17:11:11 +02:00
display:none;
2023-04-28 16:04:32 +02:00
height: 29px;
font-size: 14px;
position: absolute;
left: 200px;
2023-04-28 16:04:32 +02:00
top: 9px;
max-width:550px;
padding: 5px 0px 5px 5px;
width: calc( 63% - 200px);
2023-04-28 16:04:32 +02:00
background: #f0f0f0;
border-color: #Ccc;
}
2023-05-17 21:31:28 +02:00
.btn-foot{
background: white;
border-radius: 10px;
border: 5px solid #1c1c3299;
padding: 0px 6px;
2023-05-23 16:52:42 +02:00
bottom:73;
position: absolute;
2023-05-17 21:31:28 +02:00
}
a.btn-foot#source{
right: 10px;
color: #888;
font-weight: bold;
font-family: sans-serif;
2023-05-04 17:00:55 +02:00
z-index:2000;
2023-05-23 16:52:42 +02:00
bottom: 126px;
2023-05-04 17:00:55 +02:00
}
2023-05-17 21:31:28 +02:00
a.btn-foot#model{
2023-05-08 12:46:33 +02:00
position: absolute;
right: 10px;
color: #7c7c7c;
2023-05-08 12:46:33 +02:00
font-weight: bold;
font-family: sans-serif;
z-index:2000;
}
2023-05-09 17:42:29 +02:00
html.a-fullscreen a#model,
html.a-fullscreen a#source{
margin-right:10px;
2023-05-09 17:42:29 +02:00
}
2023-05-04 17:00:55 +02:00
.render {
position:absolute;
top:0;
left:0;
right:0;
bottom:0;
}
2023-05-04 19:54:44 +02:00
.lil-gui.autoPlace{
right:0px !important;
2023-05-17 21:31:28 +02:00
top:48px !important;
height:33vh;
2023-05-04 21:28:12 +02:00
}
#VRButton {
margin-bottom:20vh;
}
@media (max-width: 450px) {
#uri{ display:none; }
}
2023-05-04 21:28:12 +02:00
@media (max-width: 640px) {
.lil-gui.root{
top:auto !important;
left:auto !important;
}
2023-05-04 19:54:44 +02:00
}
2023-05-22 14:10:44 +02:00
/* notifications */
.js-snackbar-container {
position: absolute;
top: 10px;
left: 0px;
display: flex;
align-items: center;
width:100%;
max-width: 100%;
padding: 10px;
z-index:1001;
justify-content: center;
overflow: hidden;
}
.js-snackbar-container * {
box-sizing: border-box;
}
.js-snackbar__wrapper {
--color-c: #555;
--color-a: #EEE;
}
.js-snackbar__wrapper {
overflow: hidden;
height: auto;
margin: 5px 0;
transition: all ease .5s;
border-radius: 3px;
box-shadow: 0 0 4px 0 #0007;
left: 20px;
position: fixed;
bottom: 20px;
}
.js-snackbar {
display: inline-flex;
box-sizing: border-box;
border-radius: 3px;
color: var(--color-c);
font-size: 16px;
background-color: var(--color-a);
vertical-align: bottom;
}
.js-snackbar__close,
.js-snackbar__status,
.js-snackbar__message {
position: relative;
}
.js-snackbar__message {
padding: 12px;
}
.js-snackbar__status {
display: none;
width: 15px;
margin-right: 5px;
border-radius: 3px 0 0 3px;
background-color: transparent;
}
.js-snackbar__status.js-snackbar--success,
.js-snackbar__status.js-snackbar--warning,
.js-snackbar__status.js-snackbar--danger,
.js-snackbar__status.js-snackbar--info {
display: block;
}
.js-snackbar__status.js-snackbar--success {
background-color: #4caf50;
}
.js-snackbar__status.js-snackbar--warning {
background-color: #ff9800;
}
.js-snackbar__status.js-snackbar--danger {
background-color: #ff6060;
}
.js-snackbar__status.js-snackbar--info {
background-color: #CCC;
}
.js-snackbar__close {
cursor: pointer;
display: flex;
align-items: center;
padding: 0 10px;
user-select: none;
}
.js-snackbar__close:hover {
background-color: #4443;
}