gnu-social/public/assets/default_theme/css/widgets/sections.css
2021-12-08 15:16:30 +00:00

159 lines
3.6 KiB
CSS

.profile {
display: flex;
flex-direction: column;
flex-wrap: wrap;
font-family: 'Open Sans',sans-serif;
margin-bottom: var(--smaller);
border-radius: var(--smaller);
padding: var(--smaller);
background: var(--gradient) !important;
box-shadow: var(--shadow);
}
.profile *[class*="profile-info-"] {
flex: 1;
}
.profile-info {
display: flex;
flex-wrap: wrap;
flex-direction: column;
}
.profile-info-nickname {
font-size: var(--small);
}
.profile-info-tags {
margin: unset;
}
.profile-info-stats strong {
margin-right: 5px;
}
.profile-info-stats {
margin-top: var(--smaller);
}
.profile-info-bio {
word-break: break-all;
}
.profile-avatar {
max-width: 4rem;
max-height: 4rem;
min-width: var(--big);
width: 100%;
height: auto;
margin-right: 5px;
border-radius: 2px;
}
.section-widget {
display: flex;
flex-direction: column;
border-radius: var(--smaller);
margin-bottom: var(--small);
background-color: var(--background-card) !important;
box-shadow: var(--shadow);
border: 2px solid var(--border) !important;
}
.section-widget hr {
margin-bottom: var(--smaller);
}
.section-widget-padded {
padding: var(--smaller);
}
.section-widget-paging {
display: block;
margin-top: var(--smaller);
margin-left: auto;
}
.section-title {
font-size: var(--small);
font-weight: 700;
margin: 0;
}
.section-widget-button-like {
border-radius: var(--smaller);
padding: 6px 10px;
margin-top: 6px;
cursor: pointer;
float: right;
align-self: end;
font-family: 'Open Sans',sans-serif;
font-weight: 700;
}
.section-widget-subtitle-details :not(summary,svg,h3) {
border-radius: var(--smaller);
background: var(--gradient);
padding: 6px 10px;
}
.section-widget-title-details summary {
font-size: var(--small);
font-weight: 700;
}
.section-widget-subtitle-details summary {
border: 2px solid var(--border);
font-size: var(--default);
font-weight: 700;
margin-bottom: var(--smaller);
}
.section-widget-title-details summary,
.section-widget-subtitle-details summary {
border-radius: var(--smaller);
padding: 6px 10px;
background: var(--gradient) !important;
}
.section-widget-subtitle-details[open] svg,
.section-widget-title-details[open] .icon-details-open {
transform: rotate(180deg);
animation: fadeOut 200ms cubic-bezier(0,0.55,0.45,1);
}
.section-widget-subtitle-details:not([open]) svg,
.section-widget-title-details:not([open]) .icon-details-open {
transform: initial;
animation: fadeIn 200ms cubic-bezier(0,0.55,0.45,1);
}
.section-subtitle-summary,
.section-title-summary {
display: flex;
}
.section-subtitle-summary h3,
.section-title-summary h2 {
margin-right: auto;
}
.section-subtitle-summary svg:last-child,
.section-title-summary svg:last-child {
margin-left: 4px;
}
.section-form {
display: flex;
flex-direction: column;
max-width: 100%;
width: 100%;
padding: var(--smaller);
}
.section-form-legend {
margin-top: unset;
margin-bottom: 10px;
font-weight: bold;
font-size: var(--medium);
}
div[class^="mb-"] {
display: flex;
flex-direction: column;
flex-basis: border-box;
margin-bottom: var(--smaller);
}
div[class^="mb-"]:last-of-type {
margin-bottom: unset;
}
div[class^="mb-"] textarea {
height: 7rem;
max-height: 100%;
}
.alert,
.alert-danger {
display: inline-block;
font-style: italic;
font-size: 1rem;
border: solid 2px #ff6347;
background-color: #FF634733;
border-radius: var(--smaller);
padding: 2px 6px;
margin-top: 6px;
margin-bottom: 6px;
}