Skip to content

Commit 5e889b2

Browse files
committed
Add final snippets
1 parent 9577c71 commit 5e889b2

File tree

4 files changed

+67
-50
lines changed

4 files changed

+67
-50
lines changed

snippets/builtin/README.md

-18
This file was deleted.

snippets/builtin/fix_borders.scss

-16
This file was deleted.

snippets/builtin/fix_font.scss

-16
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
/**
2+
* Snippet Title: Rainbow navbar for anti-homophobia day
3+
* Domain: theme_boost_union
4+
* Scope: global
5+
* Goal: eyecandy
6+
* Description: 17 May is a special day for the queer community - the International Day against Homophobia, Biphobia and Transphobia. This CSS changes the background of the primary navbar to rainbow colors to commemorate and support the special day.<br /><em>Please note: To make this CSS snippet work, you have to set the 'theme_boost_union | navbarcolor' setting to 'Dark navbar with light font color' as well.</em>
7+
*
8+
* @package theme_boost_union
9+
* @copyright 2024 University of Applied Science Hamburg
10+
* @author Nils Promer <[email protected]>, Alexander Brehm <[email protected]
11+
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
12+
*/
13+
14+
.navbar {
15+
box-sizing: unset;
16+
}
17+
18+
.navbar {
19+
background: linear-gradient(90deg,
20+
hsl(217, 100%, 31%) 0%,
21+
hsl(240, 100%, 50%) 13%,
22+
hsl(270, 100%, 63%) 23%,
23+
hsl(300, 100%, 43%) 31%,
24+
hsl(330, 100%, 59%) 37%,
25+
hsl(360, 100%, 63%) 45%,
26+
hsl(30, 100%, 48%) 51%,
27+
hsl(60, 100%, 37%) 58%,
28+
hsl(90, 100%, 34%) 68%,
29+
hsl(120, 100%, 35%) 73%,
30+
hsl(240, 100%, 63%) 88%,
31+
hsl(240, 100%, 50%) 93%,
32+
hsl(217, 100%, 31%) 100%
33+
);
34+
border-bottom: 1px solid #158d25;
35+
}
36+
37+
.navbar .navbar-brand {
38+
display: none;
39+
}
40+
41+
.primary-navigation .navigation {
42+
height: 61px;
43+
}
44+
45+
.primary-navigation .nav-item .nav-link {
46+
position: relative;
47+
text-transform: uppercase;
48+
font-weight: bold;
49+
color: #fff;
50+
height: 61px;
51+
}
52+
53+
.primary-navigation .navigation .nav-link.active,
54+
.navbar.navbar-dark.bg-primary .nav-link.active {
55+
border-bottom: none;
56+
}
57+
58+
.primary-navigation li.nav-item a.nav-link.active::after {
59+
content: "";
60+
position: absolute;
61+
bottom: 14px;
62+
height: 2px;
63+
left: 0;
64+
right: 0;
65+
margin: 0 0.5em;
66+
background-color: #fff;
67+
}

0 commit comments

Comments
 (0)