gnu-social/public/assets/default_theme/css/widgets/sections.css
Eliseu Amaro 692ecf1c99
[TWIG] Improved templates HTML structure, removed unnecessary element nesting, and refactored content sectioning
[COMPONENTS][Search] Refactored widget event as 'PrependRightPanel' (making it able to accomodate more generic blocks)
2022-01-21 21:03:08 +00:00

329 lines
6.5 KiB
CSS

.profile {
font-family: 'Open Sans', sans-serif;
margin-bottom: var(--s);
border: 2px solid var(--border);
border-radius: var(--s);
padding: var(--unit);
background: var(--gradient) !important;
}
.profile header {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
vertical-align: middle;
}
.profile-info {
display: flex;
}
.profile-info-url {
display: block;
}
.profile-info-url-nickname {
font-size: var(--m);
}
.profile-info-url-remote {
opacity: 0.66;
}
.profile-info-url > * {
display: block;
}
.profile-stats {
align-self: center;
margin-left: auto;
text-align: right;
font-size: 0.937rem;
opacity: 0.66;
}
.profile-stats-subscribers,
.profile-stats-subscriptions {
display: block;
}
.profile-stats-subscribers strong,
.profile-stats-subscriptions strong {
margin-right: 4px;
}
.profile-bio,
.profile-info-url {
word-break: break-all;
}
.profile-bio {
margin-top: 4px;
}
.profile-tags {
margin: 4px unset unset;
}
.button-container {
border: none !important;
mask-repeat: no-repeat !important;
mask-size: cover !important;
display: inline-block;
width: var(--unit);
height: var(--unit);
background-color: var(--foreground);
opacity: 0.33;
}
.button-container:not(:first-of-type) {
margin-left: var(--s);
}
.button-container:focus,
.button-container:hover {
border: none !important;
mask-repeat: no-repeat !important;
mask-size: cover !important;
opacity: 1;
background-color: var(--accent);
}
.add-actor-button-container {
-o-mask-image: url("../../icons/add-actor.svg");
-moz-mask-image: url("../../icons/add-actor.svg");
-webkit-mask-image: url("../../icons/add-actor.svg");
mask-image: url("../../icons/add-actor.svg");
}
.remove-actor-button-container {
-o-mask-image: url("../../icons/remove-actor.svg");
-moz-mask-image: url("../../icons/remove-actor.svg");
-webkit-mask-image: url("../../icons/remove-actor.svg");
mask-image: url("../../icons/remove-actor.svg");
}
.avatar {
max-width: 4rem;
max-height: 4rem;
min-width: var(--xxl);
width: 100%;
height: auto;
margin-right: 5px;
border-radius: 2px;
}
.section-title {
font-weight: 700;
margin-bottom: unset;
}
.section-widget {
display: flex;
flex-direction: column;
border-radius: var(--s);
margin-bottom: var(--m);
background-color: var(--background-card) !important;
box-shadow: var(--shadow);
border: 2px solid var(--border) !important;
}
.section-widget hr {
margin-bottom: var(--s);
}
.section-padding {
padding: var(--s);
}
.section-widget-paging {
display: block;
font-family: 'Poppins', sans-serif;
font-weight: 700;
padding: 6px 12px;
margin-top: var(--s);
margin-left: auto;
}
.section-widget-title {
margin-left: unset;
}
.section-widget-button-like {
font-family: 'Poppins', sans-serif;
font-weight: 700;
display: block;
width: max-content;
align-self: end;
background: var(--gradient);
padding: 6px 8px;
border-radius: var(--s);
border: 2px solid var(--border);
}
.section-widget-title-details summary {
padding: 6px 12px;
}
.section-widget-subtitle-details summary {
padding: 2px 8px;
}
.section-widget-subtitle-summary + * {
border-radius: var(--s);
background: var(--gradient);
padding: 2px 8px;
}
.section-form .section-widget-subtitle-details summary {
border: 2px solid var(--border);
}
.section-widget-subtitle-details summary,
.section-widget-title-details summary {
display: inline-block;
width: 100%;
border-radius: var(--s);
background: var(--gradient);
}
.section-widget-subtitle-details summary > *,
.section-widget-title-details summary > * {
display: inline-block;
vertical-align: baseline;
}
.section-widget-subtitle-details summary > *:last-child,
.section-widget-title-details summary > *:last-child {
margin-right: 4px;
}
.section-widget-subtitle-details summary:after,
.section-widget-title-details summary:after {
content: "\2193";
float: right;
}
.section-widget-subtitle-details[open] summary:after,
.section-widget-title-details[open] summary:after {
transform: rotate(180deg);
animation: fadeOut 200ms cubic-bezier(0, 0.55, 0.45, 1);
}
.section-widget-subtitle-details:not([open]) summary:after,
.section-widget-title-details:not([open]) summary:after {
transform: initial;
animation: fadeIn 200ms cubic-bezier(0, 0.55, 0.45, 1);
}
.section-subtitle-summary ~ [class|="form-row"] {
font-size: 0.937rem;
max-font-size: 0.937rem !important;
padding: var(--s);
}
.section-subtitle-summary a,
.section-title-summary a {
line-height: initial;
}
.section-subtitle-summary svg:last-child,
.section-title-summary svg:last-child {
margin-left: 4px;
}
.section-widget-subtitle-details .section-widget-subtitle-details:not(:last-of-type) {
margin-bottom: var(--s);
}
.section-form {
display: flex;
flex-direction: column;
background-color: var(--background-hard);
border-radius: var(--s);
max-width: 100%;
width: 100%;
padding: var(--s);
}
.section-form-legend {
margin-top: unset;
margin-bottom: var(--s);
font-weight: bold;
}
.form-row {
display: flex;
flex-direction: column;
margin-bottom: var(--s);
}
.form-row-widget {
display: block;
width: 100%;
}
.form-row-help {
margin-bottom: unset;
}
textarea.form-row-widget {
height: 7rem;
resize: vertical;
}
.form-search {
display: inline-block;
padding-left: unset;
padding-right: unset;
padding-bottom: unset;
margin-bottom: var(--m);
}
.form-search label {
display: block;
opacity: 0;
width: 0;
height: 0;
}
.form-search span {
display: inline-flex;
width: 100%;
}
.form-search .form-row {
margin-bottom: unset;
width: 100%;
}
.form-search span input[type='text'] {
margin: unset;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
height: 100%;
}
.form-search span button {
margin: unset;
border-left: none !important;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
height: 100%;
}
.alert,
.alert-danger,
.form-error,
.form-row-widget-error {
display: inline-flex;
align-items: center;
justify-content: space-between;
font-style: italic;
border: solid 2px #ff6347;
background-color: #FF634733;
border-radius: var(--s);
padding: 2px 6px;
margin-top: 6px;
margin-bottom: 6px;
}