gnu-social/public/assets/default_theme/widgets/sections.css
Eliseu Amaro e70acd5c3b
[UTIL][HTML] HTML abstraction class was extended with a more specialised Heading class
This little abstraction layer made it a bit easier to add a different title to a Note or Actor Feed Collection template, from whichever controller that uses it. Please, bear in mind, that abstract templates such as those found in Components\Collection, may act in a very 'declarative' way upon using them. This makes it difficult to dynamically choose what type of header is used without undergoing a mining operation in the likes of a pyramid of doom. Hence, this _little_ change.
2022-02-16 18:53:08 +00:00

386 lines
7.4 KiB
CSS

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