Skip to content

Commit 96b362e

Browse files
committed
css fixes mobile
1 parent ada8a51 commit 96b362e

2 files changed

Lines changed: 16 additions & 5 deletions

File tree

_layouts/bib.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<!-- _layouts/bib.html -->
44
<div class="row">
55
{%- if site.enable_publication_thumbnails -%}
6-
<div class="col-sm-2 {% if entry.preview %}preview{% else %}abbr{% endif %}">
6+
<div class="col-sm-3 {% if entry.preview %}preview{% else %}abbr{% endif %}">
77
{%- if entry.preview -%}
88
{% if entry.preview contains '://' -%}
99
<img class="preview z-depth-1 rounded" src="{{ entry.preview }}">
@@ -30,7 +30,7 @@
3030
{%- endif -%}
3131

3232
<!-- Entry bib key -->
33-
<div id="{{entry.key}}" class="{% if site.enable_publication_thumbnails %}col-sm-8{% else %}col-sm-10{% endif %}">
33+
<div id="{{entry.key}}" class="{% if site.enable_publication_thumbnails %}col-sm-7{% else %}col-sm-10{% endif %}">
3434
<!-- Title -->
3535
<div class="title">{{entry.title}}</div>
3636
<!-- Author -->

_sass/_base.scss

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -668,14 +668,25 @@ footer.sticky-bottom {
668668
}
669669

670670
.abbr {
671-
height: 2rem;
672671
margin-bottom: 0.5rem;
673672

674673
abbr {
675674
display: inline-block;
676675
background-color: var(--global-theme-color);
677-
padding-left: 1rem;
678-
padding-right: 1rem;
676+
padding: 0.4rem 0.6rem;
677+
font-size: 0.6rem;
678+
font-weight: 600;
679+
letter-spacing: 0.01em;
680+
line-height: 1.4;
681+
white-space: normal;
682+
word-break: normal;
683+
text-align: center;
684+
border-radius: 0.25rem;
685+
686+
@media (min-width: 576px) {
687+
display: block;
688+
padding: 0.4rem 0.35rem;
689+
}
679690

680691
a {
681692
color: white;

0 commit comments

Comments
 (0)