-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path4chanx.stylus
135 lines (108 loc) · 2.46 KB
/
4chanx.stylus
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
127
128
129
130
131
132
133
134
135
base00 = #1d1f21
base01 = #282a2e
base02 = #373b41
base03 = #969896
base04 = #b4b7b4
base05 = #c5c8c6
base06 = #e0e0e0
base07 = #fff
base08 = #c66
base09 = #de935f
base0A = #f0c674
base0B = #b5bd68
base0C = #8abeb7
base0D = #81a2be
base0E = #b294bb
base0F = #a3685a
$gets
.post .postInfo .postNum.desktop > a
color: #373b41 !important
&:first-of-type
padding-left: 2px
border-top-left-radius: 3px
border-bottom-left-radius: 3px
&:last-of-type
padding-right: 2px
border-top-right-radius: 3px
border-bottom-right-radius: 3px
gets($background)
@extend $gets
.postNum.desktop > a
background: $background
.dubs
gets(base0D)
.trips
gets(base0C)
.quads
gets(base0B)
.quints
gets(base0A)
// Style flags so no hover
.flag
line-height: 11px
top: 0
width: auto !important
&::after
margin-left: 16px
padding-right: 3px
content: ' ' attr(title)
white-space: nowrap
border-radius: 3px
background: base02
// Style 4chan pass flair
.post .n-pu
width: auto !important
color: #282a2e
border-radius: 3px
background-color: alpha(base0B, .75) !important
background-repeat: no-repeat !important
background-position: bottom left !important
&::after
margin-left: 19px
padding-right: 3px
content: attr(title)
.reply
&:target, &.highlight
background: alpha(base0E, .2)!important
html body .board .thread
.replyContainer:nth-of-type(even):not(.hidden)
.post
background-color: darken(base02, 2%) !important
.quotesYou
&.opContainer .post.op, &.replyContainer .post.reply
border-left-color: base0D !important
background: rgba(130, 163, 191, .2) !important
.yourPost
&.opContainer .post.op, &.replyContainer .post.reply
border-left-color: base0B !important
background: alpha(base0B, .2) !important
.expanded-image
.fileThumb
float: none
.postMessage
max-width: 50em
// Use to hide stupid images
.noimage
.fileThumb
display: none
.fileText
&::before
local-base = alpha(base08, .8)
content: 'hidden-image'
background: local-base
color: base02
padding: 0 2px
border-radius: 3px
margin: -1px
margin-right: .5ex
border: 1px solid mix(local-base, base00, 60%)
// StyleChan CSP fixes
span.postNum.desktop > a
color: #c5c8c6 !important
&:hover
color: #81a2be !important
#navlinks
display none
// Wrap white space in code blocks
.prettyprint
white-space pre-wrap