Files
Sharpbin/SharpbinV2.Server/wwwroot/css/style.css
T

184 lines
3.6 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Noto Sans Mono", "Consolas", "SF Mono", monospace;
color: white;
}
:root {
--neutral-50: #fafafa;
--neutral-100: #f5f5f5;
--neutral-200: #e5e5e5;
--neutral-300: #d4d4d4;
--neutral-400: #a3a3a3;
--neutral-500: #737373;
--neutral-600: #525252;
--neutral-700: #404040;
--neutral-800: #262626;
--neutral-900: #171717;
--neutral-950: #0a0a0a;
}
body {
font-family: 'Roboto', sans-serif;
background-color: var(--neutral-950);
height: 100vh;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.main-container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: var(--neutral-900);
padding: 20px;
border-radius: 5px;
border: 1px solid var(--neutral-800);
width: 80%;
}
.create-form {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
}
.create-form input {
width: 100%;
padding: 10px;
margin: 5px 0;
border-radius: 5px;
border: 1px solid var(--neutral-800);
background-color: var(--neutral-800);
color: var(--neutral-50);
transition: border 0.3s;
font-size: 1rem;
}
.create-form input:focus {
outline: none;
}
.create-form input:hover {
border: 1px solid var(--neutral-600);
}
.create-form textarea {
width: 100%;
min-width: 100%;
max-width: 100%;
height: 2.5rem;
min-height: 2.5rem;
font-size: 1rem;
max-height: 40%;
padding: 10px;
margin: 5px 0;
border-radius: 5px;
border: 1px solid var(--neutral-800);
background-color: var(--neutral-800);
color: var(--neutral-50);
transition: border 0.3s;
}
.create-form textarea:focus {
outline: none;
}
.create-form textarea:hover {
border: 1px solid var(--neutral-600);
}
.create-form button {
width: 100%;
padding: 10px;
margin: 5px 0;
border-radius: 5px;
border: 1px solid var(--neutral-800);
background-color: var(--neutral-800);
color: var(--neutral-50);
cursor: pointer;
transition: background-color 0.3s;
font-size: 1rem;
}
.create-form button:hover {
background-color: var(--neutral-700);
}
select {
width: 100%;
padding: 10px;
margin: 5px 0;
border-radius: 5px;
border: 1px solid var(--neutral-800);
background-color: var(--neutral-800);
color: var(--neutral-50);
transition: border 0.3s;
font-size: 1rem;
}
select:hover {
outline: none;
border: 1px solid var(--neutral-600);
}
select:focus {
outline: none;
border: 1px solid var(--neutral-600);
}
#syntax {
padding-left: 14rem;
}
#syntax-label {
margin-bottom: -2.3rem;
margin-top: 1.1rem;
z-index: 2;
align-self: flex-start;
margin-left: 1rem;
pointer-events: none;
}
@media screen and (max-width: 800px) {
.main-container {
width: 90%;
}
.create-form textarea {
max-height: 100%;
}
#syntax-label {
margin-bottom: 0.5rem;
margin-top: 0.5rem;
margin-left: 0;
text-align: center;
align-self: center;
max-width: 12rem;
overflow: hidden;
white-space: nowrap;
/*
possible style, just not good for small screens on desktop for some reason
margin-left: 6.7rem;
max-width: 12rem;
overflow: hidden;
white-space: nowrap;
margin-bottom: -1.9rem;
*/
}
#syntax {
padding-left: 0.7rem;
}
}