tanabata/web/public/css/general.css

152 lines
2.5 KiB
CSS

@import url('https://fonts.googleapis.com/css2?family=Epilogue&family=Secular+One&display=swap');
html,
body {
width: 100%;
min-height: 100vh;
margin: 0;
padding: 10px;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
color: #eee;
background-color: #2d2b40;
background-image: url(/images/bg-1920x1440-dark.webp);
background-size: 100% auto;
background-repeat: no-repeat;
}
header {
margin: 0;
margin-top: 2vw;
padding: 0;
text-align: center;
}
h1 {
margin: 12px 0;
padding: 0;
color: inherit;
font-family: Epilogue, sans-serif;
font-size: 10vmin;
text-shadow: 0 0 8px #555;
text-align: center;
cursor: default;
}
h1 a {
color: inherit;
text-decoration: inherit;
}
h1 a:hover {
color: inherit;
text-decoration: inherit;
}
main {
margin: 0;
display: flex;
flex-direction: column;
background-color: #3348;
box-shadow: 0 0 0.5vw black;
border-radius: 16px;
width: 80vw;
max-width: 700px;
transition: 0.3s;
overflow: hidden;
}
main:hover {
background-color: #334;
box-shadow: 0 0 1vw black;
}
.contents-wrapper {
margin: 0;
padding: 2vw 2vw;
flex: 1 1 auto;
box-sizing: border-box;
display: flex;
flex-direction: row;
justify-content: space-around;
flex-wrap: wrap;
}
h2 {
margin: 0;
padding: 14px 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: hsla(270, 30%, 60%, 0.6);
border-bottom: 0;
color: #111;
font-family: Secular One, sans-serif;
font-size: 5.5vmin;
text-shadow: 2.5px 2px 0.5px #ddd;
text-align: center;
cursor: default;
}
h3 {
margin: 0;
margin-top: 0.5vw;
font-family: Secular One, sans-serif;
font-size: 3vw;
}
form {
margin: 0;
width: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.form-select {
display: block;
width: 100%;
padding: .375rem 2.25rem .375rem .75rem;
font-size: 1rem;
font-weight: 400;
line-height: 1.5;
color: #212529;
border: 1px solid #ced4da;
border-radius: .25rem;
transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none
}
.form-control,
.form-control:focus {
color: #ddd !important;
background-color: #445;
}
.form-control::placeholder,
.form-control::-webkit-input-placeholder {
color: #bbb !important;
}
td {
vertical-align: top;
}
.button-flex {
display: flex;
flex-direction: row;
justify-content: space-between;
flex-wrap: wrap;
row-gap: 10px;
}