frontpage/styles/ProjectModal.module.css

73 lines
1.3 KiB
CSS
Raw Normal View History

2022-01-14 14:27:19 +01:00
.modal {
z-index: 99;
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
padding: 5%;
background: transparent;
}
.modalContainer {
2022-02-09 17:04:10 +01:00
background: #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-05 23:11:56 +01:00
.modalText {
max-width: 45em;
margin: 0 auto;
}
2022-02-05 00:31:04 +01:00
.modalClose {
float: right;
position: relative;
2022-02-05 23:11:56 +01:00
background: #272b30;
2022-02-05 00:31:04 +01:00
border-radius: 50%;
width: 2em;
height: 2em;
font-family: sans-serif;
2022-02-05 23:11:56 +01:00
margin-bottom: 10px;
2022-02-05 00:31:04 +01:00
z-index: 100;
}
.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;
scrollbar-color: var(--repl-color, #188a18) #272b30;
}
/* Chrome, Edge, and Safari */
.modalContainer::-webkit-scrollbar {
width: 16px;
}
.modalContainer::-webkit-scrollbar-track {
background: #272b30;
border-bottom-right-radius: 20px;
border-top-right-radius: 20px;
}
.modalContainer::-webkit-scrollbar-thumb {
background-color: var(--repl-color, #188a18);
border-radius: 20px;
border: none;
}