comfycamp/assets/css/core_components.css

349 lines
5.6 KiB
CSS

.label {
display: block;
font-size: 0.875rem;
font-weight: 600;
line-height: 1.5rem;
margin-top: 16px;
}
.error {
display: flex;
margin-top: 0.75rem;
font-size: 0.875rem;
line-height: 1.5rem;
gap: 0.75rem;
}
.list {
margin-top: 3.5rem;
}
.list-description {
margin-top: -1rem;
margin-bottom: -1rem;
border-top-width: 1px;
}
.list-item {
display: flex;
padding-top: 1rem;
padding-bottom: 1rem;
font-size: 0.875rem;
line-height: 1.5rem;
gap: 1rem;
}
@media (min-width: 640px) {
.list-item {
gap: 2rem;
}
}
.list-item-title {
flex: none;
width: 25%;
}
.list-item-description {
}
.modal {
display: none;
position: relative;
z-index: 50;
}
.modal-bg {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
transition-property: opacity;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transition-duration: 300ms;
}
.modal-body {
overflow-y: auto;
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
display: flex;
justify-content: center;
align-items: center;
padding: 1rem;
width: 100%;
max-width: 48rem;
}
@media (min-width: 640px) {
.modal-body {
padding: 1.5rem;
}
}
@media (min-width: 1024px) {
.modal-body {
padding-top: 2rem;
padding-bottom: 2rem;
}
}
.modal-close-button-container {
position: absolute;
right: 1.25rem;
top: 1.5rem;
}
.modal-close-button {
padding: 0.75rem;
margin: -0.75rem;
flex: none;
opacity: 0.2;
}
.modal-close-button:hover {
opacity: 0.4;
}
.modal-close-button-icon {
width: 1.25rem;
height: 1.25rem;
}
.modal-container {
display: none;
position: relative;
padding: 3.5rem;
border-radius: 1rem;
box-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
background-color: #ffffff;
transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transition-duration: 300ms;
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.simple-form {
margin-top: 2rem;
}
.simple-form-action {
display: flex;
margin-top: 0.5rem;
gap: 1.5rem;
justify-content: space-between;
align-items: center;
}
.button {
padding-top: 0.5rem;
padding-bottom: 0.5rem;
padding-left: 0.75rem;
padding-right: 0.75rem;
border-radius: 0.5rem;
font-size: 0.875rem;
font-weight: 600;
line-height: 1.5rem;
background-color: var(--input-bg);
border: 2px solid var(--input-border);
color: white;
cursor: pointer;
width: 100%;
}
.input {
display: block;
margin-top: 0.5rem;
border-radius: 0.5rem;
width: 100%;
background-color: var(--input-bg);
border: 2px solid var(--input-border);
padding: 4px 8px;
color: white;
}
.input:focus {
outline: 1px solid var(--input-border);
}
@media (min-width: 640px) {
.input {
font-size: 0.875rem;
line-height: 1.5rem;
}
}
.textarea {
display: block;
margin-top: 0.5rem;
border-radius: 0.5rem;
width: 100%;
background-color: var(--input-bg);
border: 2px solid var(--input-border);
padding: 4px 8px;
color: white;
resize: vertical;
min-height: 50px;
max-height: 330px;
}
.textarea:focus {
outline: 1px solid var(--input-border);
}
@media (min-width: 640px) {
.textarea {
font-size: 0.875rem;
line-height: 1.5rem;
}
}
.select {
display: block;
margin-top: 0.5rem;
border-radius: 0.375rem;
border-width: 1px;
border-color: #D1D5DB;
width: 100%;
background-color: #ffffff;
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
@media (min-width: 640px) {
.select {
font-size: 0.875rem;
line-height: 1.25rem;
}
}
.checkbox-label {
display: flex;
gap: 1rem;
align-items: center;
font-size: 0.875rem;
line-height: 1.5rem;
}
.checkbox-input {
border-radius: 0.25rem;
}
.show {
transition-property: all;
transition-duration: 300ms;
transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
--transform-translate-y: 1rem;
opacity: 0;
opacity: 1;
}
@media (min-width: 640px) {
.show {
--transform-scale-x: 1;
--transform-scale-y: 1;
--transform-translate-y: 0;
}
}
.hide {
transition-property: all;
transition-duration: 300ms;
transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
--transform-translate-y: 1rem;
opacity: 0;
opacity: 1;
}
@media (min-width: 640px) {
.hide {
--transform-scale-x: .95;
--transform-scale-y: .95;
--transform-translate-y: 0;
}
}
.show-modal {
transition-property: all;
transition-duration: 300ms;
transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
.hide-modal {
transition-property: all;
transition-duration: 200ms;
transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
opacity: 1;
}
.back-nav-link {
display: flex;
gap: 8px;
}
.back-nav-link svg {
flex-shrink: 0;
width: 16px;
}
.table-container {
overflow-y: auto;
padding-left: 1rem;
padding-right: 1rem;
}
@media (min-width: 640px) {
.table-container {
overflow: visible;
padding-left: 0;
padding-right: 0;
}
}
.table {
margin-top: 2.75rem;
width: 40rem;
}
@media (min-width: 640px) {
.table {
width: 100%;
}
}
.thead {
font-size: 0.875rem;
line-height: 1.25rem;
line-height: 1.5rem;
text-align: left;
}
.th {
padding: 0;
padding-bottom: 1rem;
padding-right: 1.5rem;
font-weight: 400;
}
.th-actions {
position: relative;
padding: 0;
padding-bottom: 1rem;
}
.tbody {
position: relative;
border-top-width: 1px;
border-top-width: 1px;
font-size: 0.875rem;
line-height: 1.25rem;
line-height: 1.5rem;
}
.td {
position: relative;
padding: 0;
}