Skip to content

Commit

Permalink
Style fixes. timeline, section page banner description, search bar in…
Browse files Browse the repository at this point in the history
…put text elipses overflow
  • Loading branch information
SamuelmdLow committed Feb 20, 2025
1 parent 0e1bc7e commit 46cced0
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 18 deletions.
2 changes: 1 addition & 1 deletion section/templates/section/section_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<text x="10" y="50">{{self.title}}</text>
</svg>
</div>
<div class="c-section__description">
<div class="c-section__description banner-description">
{% if parent %}<b><a href="{% pageurl parent %}">From {{parent.title}}</a></b> &ensp;{% endif %}{{self.description|safe}} <a href="{% pageurl self %}rss/" aria-label="Go to rss feed"><ion-icon name="logo-rss"></ion-icon></a>
</div>
{%else%}
Expand Down
5 changes: 5 additions & 0 deletions ubyssey/static_src/src/styles/components/_section-page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@
}
}

.banner-description.c-section__description {
font-size: 1em;
font-weight: 400;
}

.featured_categories {
display: flex;
margin-left: 1em;
Expand Down
1 change: 1 addition & 0 deletions ubyssey/static_src/src/styles/objects/_archive.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ $search-bar-height: 50px;
background: none;

// Text
text-overflow: ellipsis;
line-height: $search-bar-height;
font-size: font-size(16);
color: var(--header_color);
Expand Down
31 changes: 14 additions & 17 deletions ubyssey/static_src/src/styles/objects/_timelines.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
@import 'modules/variables';

li.timeline-dot::before {
position: absolute;
content: "";
border-radius: 100%;
background-color: var(--timeline-colour);
}

li.timeline-dot.inverted::before {
border-color: var(--background);
transition: border-color 0.5s ease;
}

ul.horizontal-timeline {
display: flex;
list-style: none;
Expand All @@ -9,17 +21,13 @@ ul.horizontal-timeline {
position: relative;
max-width: 25%;
padding: 2.5em 2em 0 0;
border-top: 0.2em solid;
border-top: 0.2em solid var(--timeline-colour);
&.timeline-dot::before {
position: absolute;
width: 1em;
height: 1em;

left: -0.5em;
top: -0.6em;
content: "";

border-radius: 100%;
}
@media($bp-larger-than-phablet) {
&.timeline-dot .o-article__published,.o-article__seemore {
Expand All @@ -35,7 +43,7 @@ ul.horizontal-timeline {
margin-right: 3em;
max-width: none;
border: none;
border-left: 0.2em solid;
border-left: 0.2em solid var(--timeline-colour);
&.timeline-dot::before {
left: -0.6em;
top: 1em;
Expand Down Expand Up @@ -64,16 +72,12 @@ ul.horizontal-timeline-wrap {
}

&.timeline-dot::before {
position: absolute;
width: 0.6em;
height: 0.6em;
border: 0.3em solid var(--background);

left: -0.7em;
top: -0.7em;
content: "";

border-radius: 100%;
}

&.timeline-dot .o-article__published,.o-article__seemore {
Expand Down Expand Up @@ -122,16 +126,11 @@ ul.vertical-timeline {
&.timeline-dot {
padding-top: 1em;
&::before {
position: absolute;
width: 1em;
height: 1em;

left: -0.6em;
top: 1em;
content: "";

border-radius: 100%;
background-color: var(--timeline-colour);
}
}

Expand All @@ -141,8 +140,6 @@ ul.vertical-timeline {
left: -0.8em;

border: 0.2em solid var(--background);
background-color: var(--timeline-colour);
transition: border-color 0.5s ease;
}
}
li.timeline-dot:first-child {
Expand Down

0 comments on commit 46cced0

Please sign in to comment.