This repository was archived by the owner on Oct 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy path_mixins.scss
More file actions
62 lines (53 loc) · 2.02 KB
/
_mixins.scss
File metadata and controls
62 lines (53 loc) · 2.02 KB
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
//
// $$$$$$$\ $$$$$$\ $$$$$$$\ $$$$$$\ $$\ $$\ $$$$$$$$\ $$\ $$\ $$$$$$$$\ $$$$$$$\ $$$$$$\
// $$ __$$\ $$ __$$\ $$ __$$\ $$ __$$\ $$$\ $$ |$$ _____|$$ | $$ |$$ _____| $$ __$$\ $$ __$$\
// $$ | $$ |$$ / $$ |$$ | $$ |$$ / $$ |$$$$\ $$ |$$ | $$ | $$ |$$ | $$ | $$ |$$ / \__|
// $$$$$$$ |$$$$$$$$ |$$$$$$$ |$$$$$$$$ |$$ $$\$$ |$$$$$\ $$ | $$ |$$$$$\ $$ | $$ |\$$$$$$\
// $$ ____/ $$ __$$ |$$ __$$< $$ __$$ |$$ \$$$$ |$$ __| $$ | $$ |$$ __| $$ | $$ | \____$$\
// $$ | $$ | $$ |$$ | $$ |$$ | $$ |$$ |\$$$ |$$ | $$ | $$ |$$ | $$ | $$ |$$\ $$ |
// $$ | $$ | $$ |$$ | $$ |$$ | $$ |$$ | \$$ |$$$$$$$$\ \$$$$$$ |$$$$$$$$\ $$$$$$$ |\$$$$$$ |
// \__| \__| \__|\__| \__|\__| \__|\__| \__|\________| \______/ \________| \_______/ \______/
//
// Helper to generate image URLs
@function image-url($url) {
@return url("/profiles/dosomething/themes/dosomething/paraneue_dosomething/dist/images/#{$url}");
}
// Helper to generate Neue URLs
@function neue-image-url($url) {
@return url("/profiles/dosomething/themes/dosomething/paraneue/paraneue/bower_components/neue/assets/images/#{$url}");
}
// @TODO: Temporary mixin for homepage sprites (from old world)
@mixin responsive-sprite($pos-x, $pos-y) {
background-position: $pos-x/2 $pos-y/2;
@include media($tablet) {
background-position: $pos-x $pos-y;
};
}
// Applies styles to make nav text white
@mixin wrapper--nav-white {
.chrome--nav {
.hamburger {
color: #fff !important;
}
a {
color: #fff !important;
}
.secondary-nav input[type="search"] {
color: #fff;
border: 1px solid #fff;
background-image: neue-image-url('search_light.png');
@include hidpi {
background-image: neue-image-url('search_light@2x.png');
}
}
}
}
// Applies styles to make nav float over content wrapper
@mixin wrapper--nav-floating {
.chrome--nav {
position: absolute;
top: 0;
margin-bottom: 0;
z-index: 1;
}
}