UX: Campaign banner layout improvements (#273)
This commit is contained in:
@@ -106,7 +106,7 @@ body.archetype-regular {
|
||||
box-shadow: 5px 5px
|
||||
var(--discourse_subscriptions_campaign_banner_shadow_color);
|
||||
|
||||
@media screen and (max-width: 400px) {
|
||||
@include breakpoint(tablet) {
|
||||
width: 98%;
|
||||
flex-direction: column;
|
||||
}
|
||||
@@ -131,7 +131,7 @@ body.archetype-regular {
|
||||
padding: 2em;
|
||||
background-color: var(--primary-very-low);
|
||||
|
||||
@media screen and (max-width: 400px) {
|
||||
@include breakpoint(tablet) {
|
||||
width: calc(100% - 4em);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -143,7 +143,7 @@ body.archetype-regular {
|
||||
font-size: $font-up-4;
|
||||
margin: 0;
|
||||
|
||||
@media screen and (max-width: 750px) {
|
||||
@include breakpoint(tablet) {
|
||||
font-size: $font-up-3;
|
||||
}
|
||||
}
|
||||
@@ -157,11 +157,8 @@ body.archetype-regular {
|
||||
width: 100%;
|
||||
margin: 0.25em 0 1em 0;
|
||||
|
||||
@media screen and (max-width: 750px) {
|
||||
@include breakpoint(tablet) {
|
||||
font-size: $font-down-1;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 400px) {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
@@ -197,7 +194,7 @@ body.archetype-regular {
|
||||
flex-flow: column;
|
||||
justify-content: center;
|
||||
|
||||
@media screen and (max-width: 400px) {
|
||||
@include breakpoint(tablet) {
|
||||
width: calc(100% - 4em);
|
||||
}
|
||||
|
||||
@@ -283,45 +280,25 @@ html:not(.mobile-view) {
|
||||
}
|
||||
}
|
||||
|
||||
// Stack buttons and container on mobile
|
||||
html.mobile-view #topic-footer-buttons {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
// Topic Footer Version
|
||||
html:not(.mobile-view) .subscriptions-campaign-topic-footer .campaign-banner {
|
||||
margin-top: 2em;
|
||||
height: min-content;
|
||||
width: calc(100% + 14em);
|
||||
width: calc(var(--d-max-width) * 0.87);
|
||||
|
||||
@include breakpoint(large) {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.btn.close {
|
||||
top: 1em;
|
||||
right: 1em;
|
||||
}
|
||||
|
||||
.campaign-banner-info {
|
||||
width: 65%;
|
||||
|
||||
&-header {
|
||||
font-size: $font-up-6;
|
||||
}
|
||||
|
||||
&-description {
|
||||
font-size: $font-down-1;
|
||||
margin: 0.25em 0.25em 1em 0 !important;
|
||||
}
|
||||
}
|
||||
|
||||
.campaign-banner-progress {
|
||||
padding: 1.5em 2.5em 1em;
|
||||
|
||||
progress[value] {
|
||||
height: 2em;
|
||||
}
|
||||
|
||||
.campaign-banner-progress-users {
|
||||
margin-top: 1em;
|
||||
}
|
||||
|
||||
.campaign-banner-progress-users-title {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// CSS Animations for campaign Success
|
||||
|
||||
Reference in New Issue
Block a user