Skip to content

Commit b226018

Browse files
committed
Merge branch 'master' into dev/4.0
2 parents c3170fc + adda970 commit b226018

1 file changed

Lines changed: 32 additions & 2 deletions

File tree

styles/all/theme/macos.css

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
@import url("light.css");
33

44
:root {
5-
--tp-bg: #ffffc2;
6-
--tp-border: #989898;
5+
--tp-bg: rgba(255, 255, 255, 0.7);
6+
--tp-border: #d3d3d3;
77
--tp-shadow: #888888;
88
--tp-text: #000000;
99
--tp-scrollbar-track: #f5f5dc;
@@ -14,4 +14,34 @@
1414
.topic_preview_container {
1515
font-family: Verdana, Helvetica, Arial, sans-serif;
1616
box-shadow: 0 4px 8px var(--tp-shadow);
17+
-webkit-backdrop-filter: blur(12px) saturate(160%);
18+
backdrop-filter: blur(12px) saturate(160%);
19+
}
20+
21+
/* Triangles */
22+
.topic_preview_container:after,
23+
.topic_preview_container.invert:before {
24+
background: var(--tp-border);
25+
border-right: 8px solid transparent;
26+
border-left: 8px solid transparent;
27+
box-shadow: 0 4px 8px var(--tp-shadow);
28+
width: 0;
29+
height: 0;
30+
transform: none;
31+
-webkit-backdrop-filter: blur(12px) saturate(160%);
32+
backdrop-filter: blur(12px) saturate(160%);
33+
}
34+
35+
/* Upper Triangle */
36+
.topic_preview_container.invert:before {
37+
border-bottom: 8px solid var(--tp-bg);
38+
margin-top: -18px;
39+
clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
40+
}
41+
42+
/* Lower Triangle */
43+
.topic_preview_container:after {
44+
border-top: 8px solid var(--tp-bg);
45+
margin-top: 0;
46+
clip-path: polygon(50% 100%, 0% 0%, 100% 0%);
1747
}

0 commit comments

Comments
 (0)