-
Notifications
You must be signed in to change notification settings - Fork 0
/
shelf.css
126 lines (111 loc) · 3.07 KB
/
shelf.css
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
/* Image Dimentions: 907 × 1227 */
:root {
--shelf-height: 80vh;
--shelf-width: 70vw;
--shelf-height-mobile: 80vh;
--shelf-width-mobile: 100vw;
--shelf-border: 0.85vh;
--shelf-border-outer-color: #B48A5A;
--shelf-border-inner-color: #704D33;
--hover-color: #ffdd36aa;
--title-background: #326b6b6b;
--shadow-blur: -2px;
}
/* body {
color: var(--text-color);
margin: 0 !important;
background-color: #b48a5a;
background-image: url("data:image/svg+xml,%3Csvg width='84' height='16' viewBox='0 0 84 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M78 7V4h-2v3h-3v2h3v3h2V9h3V7h-3zM30 7V4h-2v3h-3v2h3v3h2V9h3V7h-3zM10 0h2v16h-2V0zm6 0h4v16h-4V0zM2 0h4v16H2V0zm50 0h2v16h-2V0zM38 0h2v16h-2V0zm28 0h2v16h-2V0zm-8 0h6v16h-6V0zM42 0h6v16h-6V0z' fill='%23704d33' fill-opacity='0.4' fill-rule='evenodd'/%3E%3C/svg%3E");
} */
/* #shelf {
margin: 4vh auto;
height: var(--shelf-height);
width: var(--shelf-width);
border: 8px ridge var(--shelf-border-outer-color);
display: flex;
flex-direction: column;
-webkit-box-shadow: 3px 3px 3px var(--shadow-blur) var(--shelf-border-bottom-inner-color),
inset -2px -2px 12px var(--shadow-blur) var(--shelf-border-bottom-inner-color),
5px 5px 12px 5px rgba(0,0,0,0);
box-shadow: 3px 3px 3px var(--shadow-blur) var(--shelf-border-bottom-inner-color),
inset -2px -2px 12px var(--shadow-blur) var(--shelf-border-bottom-inner-color),
5px 5px 12px 5px rgba(0,0,0,0);
} */
.row {
background-image: url('./assets/row.jpeg');
background-size: cover;
background-repeat: no-repeat;
flex: 1;
display: flex;
flex-direction: row;
justify-content: space-between;
height: calc(var(--shelf-height) / 4);
border-bottom: 8px ridge var(--shelf-border-inner-color);
overflow: hidden;
white-space: nowrap;
}
.row:last-child {
border-bottom: none;
}
.cell {
width: 100%;
position: relative;
display: inline-block;
/* max-width: 100px; */
}
.cell:first-child > * {
position: absolute;
left:0;
}
.cell:last-child > * {
position: absolute;
right: 0;
}
.cell:not(:last-child,:first-child) > * {
position: absolute;
left: 0;
right: 0;
margin: 0 auto;
}
.cell > img.top-img:hover {
opacity: 0;
}
.img {
position: absolute;
bottom: 0;
}
.top-img {
z-index: 2;
}
.bottom-img {
z-index: 1;
}
.title {
position: absolute;
bottom: 0;
background: var(--title-background);
width: 50%;
opacity:1;
font-size: 13px;
/* font-weight: bold; */
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
padding: 2px 4px;
text-align: center;
z-index: 3;
}
.cell:first-child > .title {
text-align: left;
}
.cell:last-child > .title {
text-align: right;
}
@media screen and (max-width: 600px) {
.decor {
display: none;
}
#shelf {
height: var(--shelf-height-mobile);
width: var(--shelf-width-mobile);
margin: 4vh 0;
}
}