Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 53f2b2c

Browse files
committed
Add snippet - cubic discord variant
1 parent 7887ee6 commit 53f2b2c

File tree

2 files changed

+72
-0
lines changed

2 files changed

+72
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,15 @@ Script used for generating the css: [https://gist.github.com/Davr1/42e64ec0b2ae4
9595
<img src="https://cdn.discordapp.com/attachments/692065688524816475/934430983934050374/unknown.png" width="49%">
9696
</p>
9797

98+
---
99+
98100
### [Revert italics](/snippets/revert_italics.css?raw=true)
99101
Brings back the old slanted text design
100102

101103
<img src="https://cdn.discordapp.com/attachments/873972327849807932/962276815756472340/revert_italics.png" width="50%">
102104

105+
---
106+
103107
# Other
104108

105109
### [Cubic discord](/snippets/cubic_discord.css?raw=true)
@@ -109,6 +113,13 @@ Turns discord into a spinning cube. firefox only.
109113

110114
---
111115

116+
### [3D discord variant](/snippets/cubic_discord_var.css?raw=true)
117+
Same as above, but this one is actually usable.
118+
119+
![](https://cdn.discordapp.com/attachments/692065688524816475/962618240075456552/unknown.png)
120+
121+
---
122+
112123
### ~~[Channel view switch](/snippets/channel_view_switch.css?raw=true)~~ [DEPRECATED](https://github.com/Discord-Datamining/Discord-Datamining/commit/b1817ee338fd46ca49bed78c543eebf054380761#commitcomment-64133576)
113124

114125
![](https://cdn.discordapp.com/attachments/692065688524816475/909111815584239646/unknown.png)

snippets/cubic_discord_var.css

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
html {
2+
display: flex;
3+
background: black;
4+
--cube-width: 65vw;
5+
--cube-height: 75vh;
6+
perspective: 650px;
7+
}
8+
html::after {
9+
content: '';
10+
width: 100%;
11+
height: 100%;
12+
position: absolute;
13+
background: radial-gradient(transparent 80%, #0008);
14+
pointer-events: none;
15+
}
16+
body {
17+
width: var(--cube-width);
18+
height: var(--cube-height);
19+
margin: auto;
20+
transform-style: preserve-3d;
21+
background: transparent;
22+
resize: both;
23+
}
24+
#app-mount::after {
25+
content: '';
26+
width: 100%;
27+
height: 100%;
28+
position: absolute;
29+
z-index: 999;
30+
pointer-events: none;
31+
background: radial-gradient(transparent 10%, #0003), radial-gradient(transparent 85%, #0005);
32+
box-shadow: inset 0 0 80px 40px #0005;
33+
}
34+
#app-mount+*, #app-mount+*+*, #app-mount+*+*+*, #app-mount+*+*+*+* {
35+
display: block;
36+
position: absolute;
37+
font-size: 0;
38+
pointer-events: none;
39+
background: -moz-element(#app-mount);
40+
inset: 0;
41+
filter: brightness(0.75) saturate(0.8);
42+
}
43+
#app-mount+* {
44+
transform: rotateY(-90deg) translateZ(calc(var(--cube-width)/-2)) translateX(calc(var(--cube-width)/2));
45+
box-shadow: inset 100px 0 200px #0004;
46+
}
47+
#app-mount+*+* {
48+
transform: rotateY(90deg) translateZ(calc(var(--cube-width)/-2)) translateX(calc(var(--cube-width)/-2));
49+
box-shadow: inset -100px 0 200px #0004;
50+
}
51+
#app-mount+*+*+* {
52+
transform: rotateX(90deg) translateZ(calc(var(--cube-height)/-2)) translateY(calc(var(--cube-height)/2));
53+
box-shadow: inset 0 100px 200px #0004;
54+
}
55+
#app-mount+*+*+*+* {
56+
transform: rotateX(-90deg) translateZ(calc(var(--cube-height)/-2)) translateY(calc(var(--cube-height)/-2));
57+
box-shadow: inset 0 -100px 200px #0004;
58+
}
59+
.drag-previewer, .drag-announcer {
60+
pointer-events: none;
61+
}

0 commit comments

Comments
 (0)