Skip to content

Commit

Permalink
Add basic author profile styling (#1373)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood authored Oct 16, 2023
2 parents d41eb51 + 505297c commit 902ec83
Show file tree
Hide file tree
Showing 6 changed files with 188 additions and 266 deletions.
25 changes: 23 additions & 2 deletions sass/etna.scss
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,7 @@ These are Etna specific components, created using BEM and following our guidelin
@import "includes/featured-record-article";
@import "includes/record-crosslink-panel";
@import "includes/image-block";
@import "includes/author-intro";
@import "includes/author-info";
@import "includes/author";
@import "includes/password-page";
@import "includes/record-creator-description";
@import "includes/record-creator-collections";
Expand Down Expand Up @@ -201,6 +200,20 @@ Modified to match the existing site (for now)
transition: none !important;
}

.tna-container {
&--centred {
justify-content: center;
}
}

.tna-chip {
&--plain {
padding: 0;
@include colour.fixed;
background-color: transparent;
}
}

.tna-footer {
&__social {
&-items {
Expand Down Expand Up @@ -271,6 +284,14 @@ Modified to match the existing site (for now)
padding-top: 1rem;
color: inherit !important;
}

a {
&,
&:link,
&:visited {
color: inherit;
}
}
}

.generic-intro__meta {
Expand Down
37 changes: 0 additions & 37 deletions sass/includes/_author-info.scss

This file was deleted.

108 changes: 0 additions & 108 deletions sass/includes/_author-intro.scss

This file was deleted.

47 changes: 47 additions & 0 deletions sass/includes/_author.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
@use "@nationalarchives/frontend/nationalarchives/tools/colour";
@use "@nationalarchives/frontend/nationalarchives/tools/media";

.tna-author {
align-items: center;

p {
margin-bottom: 0.5rem;
}

&__image {
margin: 0 auto;

overflow: hidden;
border-radius: 100%;

img {
width: 100%;
height: 100%;
}

@include media.on-tiny {
max-width: 15rem;
margin-bottom: 3rem;
}

&--small {
max-width: 5rem;
margin: 1.5rem 0 1.5rem;
}
}

&--summary {
margin-top: 2rem;

text-align: left;

@include colour.colour-border("keyline", 1px, dashed, top);

@include media.on-mobile {
padding-top: 2rem;
padding-bottom: 2rem;

@include colour.colour-border("keyline", 1px, dashed, bottom);
}
}
}
Loading

0 comments on commit 902ec83

Please sign in to comment.