frontpage/styles/Terminal/ProjectModal.module.css

155 lines
3.0 KiB
CSS
Raw Normal View History

2022-01-14 14:27:19 +01:00
.modal {
z-index: 99;
2022-09-30 16:05:33 +02:00
position: absolute;
2022-01-14 14:27:19 +01:00
top: 0;
left: 0;
width: 100vw;
height: 100vh;
padding: 5%;
2022-02-09 20:25:15 +01:00
background: rgba(0,0,0,0.5);
2022-03-09 12:11:42 +01:00
backdrop-filter: blur(1px);
2022-02-09 17:07:46 +01:00
--modal-gray: #0e0f0e;
2022-01-14 14:27:19 +01:00
}
.modalContainer {
2022-02-09 17:07:46 +01:00
background: var(--modal-gray, #0e0f0e);
2022-01-14 14:27:19 +01:00
color: #ccc;
width: 100%;
height: 100%;
padding: 20px;
border-radius: 20px;
2022-02-04 23:29:26 +01:00
overflow-y: auto;
2022-02-05 00:31:04 +01:00
position: relative;
2022-02-09 20:25:15 +01:00
clear: none;
2022-02-05 00:31:04 +01:00
}
2022-02-05 23:11:56 +01:00
.modalText {
max-width: 45em;
margin: 0 auto;
}
2022-06-13 14:48:37 +02:00
2022-02-05 00:31:04 +01:00
.modalClose {
2022-06-13 14:48:37 +02:00
box-shadow: #000 2px 2px 2px;
border: 1px solid #ccc;
2022-02-09 17:07:46 +01:00
background: var(--modal-gray, #0e0f0e);
2022-02-05 00:31:04 +01:00
border-radius: 50%;
width: 2em;
height: 2em;
font-family: sans-serif;
z-index: 100;
}
2022-06-13 15:41:29 +02:00
/* Non-mobile positioning */
2022-06-13 14:48:37 +02:00
@media all and (min-width: 1050px) {
.modalClose {
position: relative;
float: right;
margin-top: -3em;
margin-bottom: 1em;
}
}
/* Else */
@media not all and (min-width: 1050px) {
.modalClose {
position: absolute;
float: none;
2022-09-30 16:05:33 +02:00
bottom: 1%;
2022-06-13 14:48:37 +02:00
left: 50%;
transform: translate(-50%, 0);
}
}
2022-02-05 00:31:04 +01:00
.modalCloseAlign {
margin: 0;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: block;
color: #fff;
text-decoration: none;
2022-02-05 23:11:56 +01:00
}
/* Firefox */
.modalContainer {
scrollbar-width: auto;
2022-10-16 00:07:02 +02:00
scrollbar-color: var(--repl_color, #188a18) var(--modal-gray, #0e0f0e);
2022-02-05 23:11:56 +01:00
}
/* Chrome, Edge, and Safari */
.modalContainer::-webkit-scrollbar {
width: 16px;
}
.modalContainer::-webkit-scrollbar-track {
2022-02-09 17:07:46 +01:00
background: var(--modal-gray, #0e0f0e);
2022-02-05 23:11:56 +01:00
border-bottom-right-radius: 20px;
border-top-right-radius: 20px;
}
.modalContainer::-webkit-scrollbar-thumb {
2022-10-16 00:07:02 +02:00
background-color: var(--repl_color, #188a18);
2022-02-05 23:11:56 +01:00
border-radius: 20px;
border: none;
}
2022-06-13 12:54:40 +02:00
.pageSelector {
2022-06-13 15:41:29 +02:00
display: grid;
grid-template-columns: 1fr max-content max-content max-content 1fr;
2022-06-13 12:54:40 +02:00
font-family: sans-serif;
}
.pageSelector:last-of-type {
margin-top: 10px;
}
.pageSelector select {
background: var(--modal-gray); /* Transparent does not work for the dropdown */
2022-10-16 00:07:02 +02:00
color: var(--repl_color-link);
2022-06-13 12:54:40 +02:00
font-size: 1rem;
}
.pageSelector a:link, .pageSelector a:visited, .pageSelector a:hover, .pageSelector a:active {
2022-10-16 00:07:02 +02:00
color: var(--repl_color-link);
2022-06-13 12:54:40 +02:00
text-decoration: none;
}
.pageSelector a:hover {
text-decoration: underline;
}
.leftSelectSpace {
2022-06-13 15:41:29 +02:00
justify-self: right;
2022-06-13 12:54:40 +02:00
}
.rightSelectSpace {
2022-06-13 15:41:29 +02:00
justify-self: left;
2022-06-13 12:54:40 +02:00
}
2022-06-13 15:41:29 +02:00
/* On mobile we only want to show the html select */
@media all and (max-width: 500px) {
.leftSelectSpace, .rightSelectSpace, .pageSelector span {
display: none;
}
.pageSelector select {
margin-left: auto;
margin-right: auto;
display: block;
}
.pageSelector {
display: block;
}
2022-07-30 17:49:29 +02:00
}
.fakeLink {
2022-10-16 00:07:02 +02:00
color: var(--repl_color-link);
2022-07-30 17:49:29 +02:00
text-decoration: none;
cursor: pointer;
}
.fakeLink:hover {
text-decoration: underline;
2022-06-13 15:41:29 +02:00
}