dndmusicbot/css/style.css

208 lines
4.0 KiB
CSS
Raw Normal View History

2022-11-19 17:31:19 +00:00
*, ::after, ::before {
box-sizing: border-box;
}
.item-container {
2022-11-19 01:28:11 +00:00
--grid-layout-gap: 8px;
2022-11-19 17:31:19 +00:00
--grid-column-count: 6;
2022-11-19 01:28:11 +00:00
--grid-item--min-width: 150px;
--gap-count: calc(var(--grid-column-count) - 1);
--total-gap-width: calc(var(--gap-count) * var(--grid-layout-gap));
--grid-item--max-width: calc((100% - var(--total-gap-width)) / var(--grid-column-count));
display: grid;
grid-template-columns: repeat(auto-fill, minmax(max(var(--grid-item--min-width), var(--grid-item--max-width)), 1fr));
grid-auto-rows: 1fr;
grid-gap: var(--grid-layout-gap);
2022-11-18 21:18:12 +00:00
}
.playing {
2022-11-19 01:28:11 +00:00
background-color: burlywood;
2022-11-18 21:18:12 +00:00
}
h2.bot {
2022-11-19 01:28:11 +00:00
margin-top: 0;
margin-bottom: .5rem;
text-align: center;
2022-11-18 21:18:12 +00:00
}
.item {
2022-11-21 22:52:07 +00:00
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
2022-11-19 01:28:11 +00:00
display: flex;
justify-content: center;
align-items: center;
padding: 1rem;
background-color: #80cbc4;
border: 1px solid black;
text-align: center;
cursor: pointer;
color: #073642
2022-11-18 21:18:12 +00:00
}
2022-11-19 01:28:11 +00:00
.item.stop {
background-color: #cb4b16;
}
#info {
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
}
.controls {
display: flex;
align-items: center;
justify-content: space-around;
width: 100%;
margin: 0 auto;
max-width: 512px;
}
.input-container {
max-width: 512px;
2022-11-18 21:18:12 +00:00
}
.box {
2022-11-19 01:28:11 +00:00
/* background-color: #fefefe;*/
2022-11-18 21:18:12 +00:00
margin: 15% auto; /* 15% from the top and centered */
2022-11-19 01:28:11 +00:00
padding: 2rem;
2022-11-18 21:18:12 +00:00
/*border: 1px solid #888;*/
width: 80%; /* Could be more or less, depending on screen size */
align-content: center;
}
/* The Modal (background) */
.modal {
display: block; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgb(0,0,0); /* Fallback color */
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
/* Modal Content/Box */
.modal-content {
margin: 15% auto; /* 15% from the top and centered */
2022-11-19 01:28:11 +00:00
padding: 2rem;
2022-11-18 21:18:12 +00:00
width: 80%; /* Could be more or less, depending on screen size */
text-align: center;
}
2022-11-19 01:28:11 +00:00
body, html {
margin: 0;
2022-11-19 17:31:19 +00:00
padding: 0;
2022-11-19 01:28:11 +00:00
}
input[type="button"],
input[type="submit"] {
display: inline-block;
height: 38px;
padding: 0 30px;
color: #555;
text-align: center;
font-size: 11px;
font-weight: 600;
line-height: 38px;
letter-spacing: .1rem;
text-transform: uppercase;
text-decoration: none;
white-space: nowrap;
border-radius: 4px;
border: 1px solid #bbb;
cursor: pointer;
box-sizing: border-box;
}
input[type="button"]:focus,
input[type="submit"]:hover {
color: #333;
border-color: #888;
outline: 0;
}
input[type="text"] {
height: 38px;
padding: 6px 10px;
background-color: #fff;
border: 1px solid #D1D1D1;
border-radius: 4px;
box-shadow: none;
box-sizing: border-box;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
input[type="text"]:focus {
border: 1px solid #33C3F0;
outline: 0;
}
section {
margin-bottom: .5rem;
}
2022-11-19 17:31:19 +00:00
.container,
.container-fluid,
.container-xxl,
.container-xl,
.container-lg,
.container-md,
.container-sm {
--bs-gutter-x: 1.5rem;
--bs-gutter-y: 0;
width: 100%;
padding-right: var(--bs-gutter-x, 0.75rem);
padding-left: var(--bs-gutter-x, 0.75rem);
margin-right: auto;
margin-left: auto;
}
@media (min-width: 576px) {
.container-sm, .container {
max-width: 540px;
}
}
@media (min-width: 768px) {
.container-md, .container-sm, .container {
max-width: 720px;
}
}
@media (min-width: 992px) {
.container-lg, .container-md, .container-sm, .container {
max-width: 960px;
}
}
@media (min-width: 1200px) {
.container-xl, .container-lg, .container-md, .container-sm, .container {
max-width: 1140px;
}
}
@media (min-width: 1400px) {
.container-xxl, .container-xl, .container-lg, .container-md, .container-sm, .container {
max-width: 1320px;
}
}
2022-11-19 01:28:11 +00:00
.u-full-width {
width: 100%;
box-sizing: border-box;
}
.u-hidden {
display: none;
2022-11-18 21:18:12 +00:00
}