Skip to content
This repository was archived by the owner on Apr 21, 2026. It is now read-only.

Commit d469407

Browse files
author
dpatanin
committed
fix image scaling in scanner docs
1 parent aa36ccf commit d469407

3 files changed

Lines changed: 8 additions & 51 deletions

File tree

src/scss/components/_sidebar.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ ul {
187187
}
188188
}
189189
#content {
190-
width: 100%;
190+
width: auto;
191191
padding: 20px;
192192
min-height: 100vh;
193193
//Instead of the line below you could use @include transition($transition-1, $transition-2, $transition-3, $transition-4, $transition-5, $transition-6, $transition-7, $transition-8, $transition-9, $transition-10)
Lines changed: 6 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,13 @@
11
.scanner {
22
display: flex;
3-
flex-wrap: wrap;
4-
flex-direction: row;
5-
align-items: center;
6-
.scanner-image {
7-
flex: 0;
8-
margin-right: 10px;
3+
#content {
94
img {
10-
width: 160px;
5+
width: 450px;
116
}
12-
}
13-
.scanner-meta {
14-
flex: 1;
15-
margin-bottom: 10px;
16-
p {
17-
margin-bottom: 0;
18-
}
19-
a {
20-
}
21-
}
22-
.scanner-title {
23-
margin-bottom: 5px;
24-
}
25-
.scaner-name {
26-
font-weight: bold;
27-
display: inline-block;
28-
margin-right: 10px;
29-
}
30-
.scanner-content {
31-
flex: 1 0 100%;
32-
33-
blockquote {
34-
display: block;
35-
border-width: 2px 0 0 0;
36-
border-style: solid;
37-
border-color: #eee;
38-
padding: 1.5em 0 0.5em;
39-
margin: 1.5em 0;
40-
position: relative;
41-
}
42-
blockquote:before {
43-
content: '\201C';
44-
position: absolute;
45-
top: 0em;
46-
left: 50%;
47-
transform: translate(-50%, -50%);
48-
background: #fff;
49-
width: 3rem;
50-
height: 2rem;
51-
font: 6em/1.08em 'PT Sans', sans-serif;
52-
color: $primary;
53-
text-align: center;
7+
@include media-breakpoint-down(sm) {
8+
img {
9+
display: none;
10+
}
5411
}
5512
}
5613
}

src/templates/scanner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const Scanner = ({ data }) => {
88
const scanner = data.allMarkdownRemark.edges;
99

1010
return (
11-
<Layout bodyClass="page-scanners">
11+
<Layout bodyClass="scanner">
1212
<div className="sidebar-wrapper">
1313
<nav className="sidebar">
1414
<ul class="list-unstyled components">

0 commit comments

Comments
 (0)