generated from greenelab/lab-website-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcitation.scss
103 lines (87 loc) · 1.47 KB
/
citation.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
---
---
$thumb-size: 180px;
$wrap: 800px;
.citation-container {
container-type: inline-size;
}
.citation {
display: flex;
margin: 20px 0;
border-radius: var(--rounded);
background: var(--background);
overflow: hidden;
box-shadow: var(--shadow);
}
.citation-image {
position: relative;
width: $thumb-size;
flex-shrink: 0;
// box-shadow: var(--shadow);
}
.citation-image img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: contain;
}
.citation-text {
position: relative;
display: inline-flex;
flex-wrap: wrap;
gap: 10px;
max-width: 100%;
height: min-content;
padding: 20px;
padding-left: 30px;
text-align: left;
overflow-wrap: break-word;
z-index: 0;
}
.citation-title,
.citation-authors,
.citation-details,
.citation-description {
width: 100%;
}
.citation-title {
font-weight: var(--semi-bold);
}
.citation-text > .icon {
position: absolute;
top: 20px;
right: 20px;
color: var(--light-gray);
opacity: 0.5;
font-size: 30px;
z-index: -1;
}
.citation-publisher {
text-transform: capitalize;
}
.citation-description {
color: var(--gray);
}
.citation-buttons {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.citation-buttons .button {
margin: 0;
}
.citation-text > .tags {
display: inline-flex;
justify-content: flex-start;
margin: 0;
}
@container (max-width: #{$wrap}) {
.citation {
flex-direction: column;
}
.citation-image {
width: unset;
height: $thumb-size;
}
}