2021-03-18 15:05:15 +01:00
|
|
|
/* A potentially shared website could appear in an iframe in the cowebsite space. */
|
|
|
|
|
2021-03-18 12:37:05 +01:00
|
|
|
#cowebsite {
|
2021-03-18 15:05:15 +01:00
|
|
|
position: fixed;
|
|
|
|
transition: transform 0.5s;
|
|
|
|
background-color: white;
|
2021-05-17 14:30:54 +02:00
|
|
|
|
2021-03-18 15:05:15 +01:00
|
|
|
&.loading {
|
|
|
|
background-color: gray;
|
|
|
|
}
|
|
|
|
|
2021-05-16 18:48:48 +02:00
|
|
|
&.focus {
|
|
|
|
z-index: 999;
|
|
|
|
}
|
|
|
|
|
2021-03-18 15:05:15 +01:00
|
|
|
main {
|
|
|
|
iframe {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2021-06-07 17:48:39 +02:00
|
|
|
max-width: 100vw;
|
|
|
|
max-height: 100vh;
|
2021-03-18 15:05:15 +01:00
|
|
|
}
|
|
|
|
}
|
2021-05-17 14:30:54 +02:00
|
|
|
|
2021-03-18 12:37:05 +01:00
|
|
|
aside {
|
2021-04-28 13:10:50 +02:00
|
|
|
background: #212529;
|
2021-03-18 15:05:15 +01:00
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
2021-03-18 12:37:05 +01:00
|
|
|
|
|
|
|
img {
|
|
|
|
margin: 3px;
|
|
|
|
pointer-events: none;
|
|
|
|
height: 20px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.top-right-btn{
|
|
|
|
position: absolute;
|
|
|
|
background: none;
|
|
|
|
border: none;
|
2021-05-17 16:16:18 +02:00
|
|
|
cursor: url('./images/cursor_pointer.png'), pointer;
|
2021-03-18 12:37:05 +01:00
|
|
|
|
|
|
|
img {
|
2021-03-31 17:40:57 +02:00
|
|
|
height: 25px;
|
|
|
|
padding: 4px;
|
2021-03-18 12:37:05 +01:00
|
|
|
border-radius: 3px;
|
|
|
|
}
|
|
|
|
|
|
|
|
img:hover {
|
|
|
|
background-color: rgba(0,0,0,0.4);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-aspect-ratio: 1/1) {
|
|
|
|
#cowebsite {
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
width: 50%;
|
|
|
|
height: 100vh;
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
&.loading {
|
|
|
|
transform: translateX(90%);
|
|
|
|
}
|
|
|
|
&.hidden {
|
|
|
|
transform: translateX(100%);
|
|
|
|
}
|
|
|
|
|
|
|
|
main {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
aside {
|
|
|
|
width: 30px;
|
2021-03-18 15:05:15 +01:00
|
|
|
cursor: ew-resize;
|
2021-03-18 12:37:05 +01:00
|
|
|
|
|
|
|
img {
|
2021-03-18 15:05:15 +01:00
|
|
|
cursor: ew-resize;
|
2021-03-18 12:37:05 +01:00
|
|
|
transform: rotate(90deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.top-right-btn{
|
2021-06-04 11:14:49 +02:00
|
|
|
left: -2px;
|
2021-03-31 17:40:57 +02:00
|
|
|
&#cowebsite-close {
|
|
|
|
top: 0px;
|
|
|
|
}
|
|
|
|
&#cowebsite-fullscreen {
|
|
|
|
top: 25px;
|
2021-03-18 12:37:05 +01:00
|
|
|
}
|
2021-05-16 18:48:48 +02:00
|
|
|
&#cowebsite-focus {
|
|
|
|
top: 50px;
|
|
|
|
}
|
2021-03-18 12:37:05 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|