This repository has been archived by the owner on May 30, 2019. It is now read-only.
/
slight.styl
141 lines (116 loc) · 4.5 KB
/
slight.styl
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
136
137
138
139
140
141
/*!
Slight, by huw
Find us at /r/Slight or /u/3vans
v1.1
PLEASE DON'T DIRECTLY EDIT THE CSS HERE! USE STYLUS AND AN EDITOR!
*/
///// VARIABLES
// Here are all of the variables that this project uses. The aim is to
// keep this number to a minimum, so that the user can easily customise
// the stylesheet just by editing these values
/// IMAGE DATA
// If you want to use a custom image, you MUST update this data.
// If you don't, a lot of important metrics will break. `size` is
// fairly self-explanatory (width, then height). `base` is for CSS
// sprites only, and determines the base size of a css sprite,
// provided you use a grid.
image_data = {
'spritesheet': {
size: image-size('images/spritesheet.png'),
base: 18px
},
'logo': {
size: image-size('images/logo.png')
},
'side-image': {
size: (600px 600px)
}
}
/// COLOR SCHEME
// If you want to use the light icons and text on the header, set
// this to `true`. If you want to use a dark mode body, set
// `light_body` to `false`
light = true
light_body = true
// You should usually only have to just set `primary`, and the rest
// will be programatically determined for you
primary = rgba(#5478A0)
logo_color = #fff
black = rgba(#000, 0.87)
white = rgba(#fff, 0.7)
if light
header_color = white
else
header_color = black
red = #f44336
green = #4CAF50
blue = #2196F3
gold = #b79c1f
promoted_link_background = #FFD180
orangered = #ff5722
periwinkle = #2196f3
backing = #f7f7f7
backing_dark = #263238
secondary_text = rgba(#000, 54%)
secondary_text_dark = rgba(#fff, 70%)
divider = rgba(#000, 12%)
divider_dark = rgba(#fff, 12%)
hint = alpha(#000, 26%)
hint_dark = alpha(#fff, 50%)
/// METRICS
// Only header stuff is really available for the moment. If you have
// complainy 'powerusers' who don't really care for design, push
// this value down a bit. `25vh` = 25% of the screen's height
header_height = 25vh
header_height_max = 200px
/// OTHER
// The fonts that your style will use
fonts = "San Francisco Display", "Helvetica Neue", Roboto, Arial, sans-serif
// Items in the tabmenu (up the top) to enable
menu_items = ("hot" "new" "top")
// Link for the image tile in the sidebar
// If you've come from <1.1, you'll need to remove the single quotes
// Leave it blank if you want the tile to disappear
promoted_tile = ""
// Submit `link` or `text` by default
submit_type = 'text'
// Subscribers, and users here now
subscriber_text = "readers"
online_text = "here now"
// Do you have a 'message the moderators' link in your sidebar?
mod_msg_sidebar = false
// Are you using text flairs, or image flairs?
image_flairs = false
// What text should the users see on the submit page?
submit_warning = "If you read the sidebar before you post, you're a lot more likely to have your content accepted and enjoyed by the community! Ask yourself these: Will they enjoy my post? Am I breaking a rule? Has someone else made this post yet?"
// What words should non-subscribed users see? ("" = no message)
subscribe_message = "Subscribe now!"
// Quick guide to the file structure:
// mixins.styl contains all of the functions we use throughout the sheet
// header.styl is a few general styles, the header, and the footer
// content.styl is the listing & comments pages and anything in the body
// sidebar.styl is the sidebar of reddit
@import "styles/mixins.styl"
@import "styles/header.styl"
@import "styles/content.styl"
@import "styles/sidebar.styl"
/**** SUBREDDIT-SPECIFIC STYLING ****
* These styles are specific to the subreddit that this stylesheet is
* applied to. In this case, it's _______.
*/// Please write all of your subreddit-specific styles here, rather
// than editing any of the other sheets.
/*** NAME CHANGES ***/
names = ()
if names
{join('a.author[href$="/%s"]', names)}
visibility hidden
font-size 0
padding 0 2px !important
&::after
visibility visible
font-size 0.75rem
color inherit
background inherit
for name in names
{'a.author[href$="' + name + '"]::after'}
content "[Mod] " + name