Skip to content

Commit

Permalink
More styling and content fixes to static about page
Browse files Browse the repository at this point in the history
  • Loading branch information
dariusk committed Dec 31, 2022
1 parent 0ec450b commit bcfefcb
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 44 deletions.
8 changes: 8 additions & 0 deletions app/javascript/styles/macaron/diff.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1168,3 +1168,11 @@ button.icon-button.disabled i.fa-retweet {
background: $white;
}
}

.rules-list {
background-color: $cream;
}

.button.button-tertiary {
color: $darker-text-color;
}
2 changes: 1 addition & 1 deletion app/javascript/styles/mastodon/about.scss
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ h1 a.brand {
height: 104px;
position: relative;
left: -40px;
bottom: 25px;
bottom: 37px;

img {
height: 190px;
Expand Down
63 changes: 29 additions & 34 deletions app/javascript/styles/mastodon/containers.scss
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,34 @@
}

.public-layout {
@media screen and (max-width: $no-gap-breakpoint-static) {
padding-top: 48px;
.originalheader {
padding: 50px 30px 30px;

.logo--icon {
width: 140px;
}

h1 {
margin-bottom: 20px;

a {
line-height: 1em;
}
}

#register {
margin-top: 10px;
}

.btn {
text-transform: uppercase;
}

.closed {
margin-top: 10px;
border-radius: 4px;
max-width: 400px;
}
}

.container {
Expand Down Expand Up @@ -413,6 +439,7 @@
overflow: hidden;
margin-bottom: 10px;
box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
height: auto;

&.inactive {
opacity: 0.5;
Expand All @@ -431,38 +458,6 @@
padding: 3px 15px;
}

&__image {
border-radius: 4px 4px 0 0;
overflow: hidden;
height: 300px;
position: relative;
background: darken($ui-base-color, 12%);

&::after {
content: "";
display: block;
position: absolute;
width: 100%;
height: 100%;
box-shadow: inset 0 -1px 1px 1px rgba($base-shadow-color, 0.15);
top: 0;
left: 0;
}

img {
object-fit: cover;
display: block;
width: 100%;
height: 100%;
margin: 0;
border-radius: 4px 4px 0 0;
}

@media screen and (max-width: 600px) {
height: 200px;
}
}

&--no-bar {
margin-bottom: 0;

Expand Down
28 changes: 19 additions & 9 deletions app/views/about/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,25 @@
.column-0
.public-account-header.public-account-header--no-bar
.public-account-header__image
- if @instance_presenter.thumbnail.present?
= image_tag @instance_presenter.thumbnail&.file&.url, alt: @instance_presenter.title, class: 'parallax'
- else
%div{:class => ("originalheader")}
= logo_as_symbol
%h1
= link_to root_url, class: 'brand' do
= site_title

%div{:class => ("originalheader")}
%h1
= link_to root_url, class: 'brand' do
= site_title
.box-widget
%p <a href="/auth/sign_in" id="login" class="btn button button-primary">Sign in</a>
- if !closed_registrations?
%p <a href="/auth/sign_up" id="register" class="btn button button-primary">Create account</a>
- if closed_registrations? && @instance_presenter.closed_registrations_message.present?
.closed
.rich-formatting
%h3= 'Registrations closed.'
%p= @instance_presenter.closed_registrations_message.html_safe
- if closed_registrations? && !@instance_presenter.closed_registrations_message.present?
%hr
.closed
.rich-formatting
%h3= 'Registrations closed.'
%p= 'This server is closed to registrations.'
.column-1
.landing-page__call-to-action{ dir: 'ltr' }
.row
Expand Down

0 comments on commit bcfefcb

Please sign in to comment.