Skip to content

Commit

Permalink
meira CSS update
Browse files Browse the repository at this point in the history
  • Loading branch information
abjarna committed Jun 9, 2024
1 parent df89a1a commit 030baeb
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 26 deletions.
35 changes: 14 additions & 21 deletions rit/_static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Síðan er stærðin á myndunum skilgreint inn í tikz skránum. */

/* Tryggja icon-links séu left-aligned og byrja á sama stað og logo og annar texti í sidebar */
.navbar-icon-links {
justify-content: normal;
justify-content: space-around;
}

/* Kemur í veg fyrir að langur texti í navbar-nav noti tvær eða fleiri línu */
Expand Down Expand Up @@ -194,29 +194,22 @@ nav.bd-links {
display: none;
}












/* Gera línu fyrir ofan rubik-social-media-text -- GERA ÞETTA FREKAR FYRIR NEÐAN OF SAMRÆMA VIÐ AÐRA CONTAINER-A */
.rubik-social-media-text {
padding: .5rem 0;
border-top: 1px solid var(--pst-color-border);
/* Gera línu fyrir neðan hvert sidebar-primary-item, nema það neðsta */
.sidebar-primary-item:not(:last-child) {
border-bottom: 1px solid var(--pst-color-border);
}

/* Slökkva á navbar-nav undir 960px, þar sem rubik-sidebar-nav-section-top.html kemur í staðinn */
@media (max-width: 960px) {
.bd-navbar-elements.navbar-nav {
display: none;
}
}






/* Laga bil á milli theme-switcher takkans undir 960px og fyrstu línu */
.bd-sidebar-primary .sidebar-header-items {
margin-bottom: -.5rem;
}



Expand Down
5 changes: 1 addition & 4 deletions rit/_templates/rubik-icon-links.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{# Displays icon-links as list items. #}
<div
class="rubik-social-media-text">
Fylgstu með á samfélagsmiðlum
</div>
<!-- <div class="rubik-social-media-text"> Fylgstu með á samfélagsmiðlum </div> -->
{%- macro icon_link_nav_item(url, icon, name, type, attributes='') -%}
{%- if url | length > 2 %}
<li class="nav-item">
Expand Down
2 changes: 1 addition & 1 deletion rit/_templates/rubik-sidebar-nav-section-top.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
) -%}

<div class="bd-links" id="bd-docs-nav" aria-label="{{ _('Section navigation') }}">
<p class="bd-links__title rubik-sidebar-nav-section-top" role="heading" aria-level="1">Ritsafn RÚBIK Reykjavíkur</p>
<!-- <p class="bd-links__title rubik-sidebar-nav-section-top" role="heading" aria-level="1">Ritsafn RÚBIK Reykjavíkur</p> -->
<div class="bd-toc-item navbar-nav rubik-sidebar-nav-top">
{{ sidebar_nav_html }}
</div>
Expand Down

0 comments on commit 030baeb

Please sign in to comment.