Skip to content

Commit a47a195

Browse files
author
Simon L. Lange
committed
Ringsted: File arrow
1 parent 2e7f0fb commit a47a195

File tree

2 files changed

+42
-42
lines changed

2 files changed

+42
-42
lines changed

web/themes/custom/fds_redwhite_theme/dist/stylesheets/stylesheet.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/themes/custom/fds_redwhite_theme/src/styles/theme/field/_file.scss

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,47 @@
2626
max-width: 100% !important;
2727
padding-left: 0 !important;
2828
padding-right: 0 !important;
29+
.file {
30+
display: block;
31+
box-shadow: none;
32+
margin-bottom: 4px;
33+
background-color: #fafafa;
34+
padding: 30px;
35+
border: 1px solid var(--light-gray2);
36+
margin-bottom: 15px;
37+
padding-left: 0 !important; // Reset.
38+
background-image: none !important;
39+
box-shadow: $box-shadow;
40+
a {
41+
position: relative;
42+
display: flex;
43+
align-items: center;
44+
word-break: break-word;
45+
padding: 0 (30px + 30px + 5px) 0 30px; // Width of icon + left/right spacing + gutter.
46+
height: 88px;
47+
max-width: 100%; // Reset.
48+
font-weight: bold;
49+
&:hover,
50+
&:focus,
51+
&:visited {
52+
color: var(--primary);
53+
text-decoration: none;
54+
}
55+
&:after {
56+
display: inline-block;
57+
position: absolute;
58+
content: "";
59+
top: 50%;
60+
right: 30px;
61+
margin-top: -15px; // Half the height.
62+
width: 30px;
63+
height: 30px;
64+
background-image: url("../images/download.svg");
65+
background-repeat: no-repeat;
66+
background-size: contain;
67+
}
68+
}
69+
}
2970

3071
span {
3172
a{
@@ -37,47 +78,6 @@
3778
}
3879
}
3980

40-
.file {
41-
display: block;
42-
box-shadow: none;
43-
margin-bottom: 4px;
44-
background-color: #fafafa;
45-
padding: 30px;
46-
border: 1px solid var(--light-gray2);
47-
margin-bottom: 15px;
48-
padding-left: 0 !important; // Reset.
49-
background-image: none !important;
50-
box-shadow: $box-shadow;
51-
a {
52-
position: relative;
53-
display: flex;
54-
align-items: center;
55-
word-break: break-word;
56-
padding: 0 (30px + 30px + 5px) 0 30px; // Width of icon + left/right spacing + gutter.
57-
height: 88px;
58-
max-width: 100%; // Reset.
59-
font-weight: bold;
60-
&:hover,
61-
&:focus,
62-
&:visited {
63-
color: var(--primary);
64-
text-decoration: none;
65-
}
66-
&:after {
67-
display: inline-block;
68-
position: absolute;
69-
content: "";
70-
top: 50%;
71-
right: 30px;
72-
margin-top: -15px; // Half the height.
73-
width: 30px;
74-
height: 30px;
75-
background-image: url("../images/download.svg");
76-
background-repeat: no-repeat;
77-
background-size: contain;
78-
}
79-
}
80-
}
8181

8282
.field--name-field-os2web-m-bp-enclosures {
8383
span.file {

0 commit comments

Comments
 (0)