Skip to content

Commit 1a70e15

Browse files
committed
Clean up builtin snippets
1 parent ce7c9c3 commit 1a70e15

11 files changed

+195
-247
lines changed

snippets/builtin/accessibility_snippet.scss

-16
This file was deleted.

snippets/builtin/collection_fixing_visual_flaws.scss

-17
This file was deleted.

snippets/builtin/cookies_popup_enhancement.scss

-93
This file was deleted.

snippets/builtin/international_day_against_homophobia.scss

-68
This file was deleted.

snippets/builtin/rainbow_navbar.scss

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
/**
2+
* Snippet Title: Rainbow navbar (for international day against homophobia)
3+
* Scope: global
4+
* Goal: eyecandy
5+
* Description: 17 May is a special day for the queer community - the international day against homophobia, biphobia and transphobia. This snippet changes the background of the navbar to rainbow colors to commemorate and support this special day.
6+
* Creator: Nils Promer and Alexander Brehm
7+
*
8+
* @copyright 2024 University of Applied Science Hamburg
9+
* @author Nils Promer <[email protected]>, Alexander Brehm <[email protected]
10+
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
11+
*/
12+
13+
.navbar {
14+
@extend .navbar-dark;
15+
@extend .bg-dark;
16+
}
17+
18+
.navbar {
19+
box-sizing: unset;
20+
}
21+
22+
.navbar {
23+
background: linear-gradient(90deg,
24+
hsl(217, 100%, 31%) 0%,
25+
hsl(240, 100%, 50%) 13%,
26+
hsl(270, 100%, 63%) 23%,
27+
hsl(300, 100%, 43%) 31%,
28+
hsl(330, 100%, 59%) 37%,
29+
hsl(360, 100%, 63%) 45%,
30+
hsl(30, 100%, 48%) 51%,
31+
hsl(60, 100%, 37%) 58%,
32+
hsl(90, 100%, 34%) 68%,
33+
hsl(120, 100%, 35%) 73%,
34+
hsl(240, 100%, 63%) 88%,
35+
hsl(240, 100%, 50%) 93%,
36+
hsl(217, 100%, 31%) 100%
37+
);
38+
border-bottom: 1px solid #158d25;
39+
}
40+
41+
.navbar .navbar-brand {
42+
display: none;
43+
}
44+
45+
.primary-navigation .navigation {
46+
height: 61px;
47+
}
48+
49+
.primary-navigation .nav-item .nav-link {
50+
position: relative;
51+
text-transform: uppercase;
52+
font-weight: bold;
53+
color: #fff;
54+
height: 61px;
55+
}
56+
57+
.primary-navigation .navigation .nav-link.active,
58+
.navbar.navbar-dark.bg-primary .nav-link.active {
59+
border-bottom: none;
60+
}
61+
62+
.primary-navigation li.nav-item a.nav-link.active::after {
63+
content: "";
64+
position: absolute;
65+
bottom: 14px;
66+
height: 2px;
67+
left: 0;
68+
right: 0;
69+
margin: 0 0.5em;
70+
background-color: #fff;
71+
}
+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
/**
2+
* Snippet Title: Site policy modal dialogue
3+
* Scope: global
4+
* Goal: easeofuse
5+
* Description: Change the site policy banner which is shown at the bottom of the page when first visiting the site to a modal dialogue which is much more eye-catching and convenien for the user.
6+
* Creator: Heba Amer
7+
*
8+
* @copyright 2024 The American University in Cairo, based on pre-existing work by lern.link
9+
* @author Heba Amer <[email protected]>
10+
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
11+
*/
12+
13+
.eupopup-container.eupopup-container-bottom {
14+
flex-direction: column;
15+
justify-content: center;
16+
background-color: #fff;
17+
border-radius: 10px;
18+
box-shadow: 4px 4px 12px 2000px rgba(0,0,0,.56);
19+
position: absolute;
20+
top: 50%;
21+
left: 50%;
22+
width: 320px;
23+
height: 300px;
24+
margin: -150px 0 0 -160px;
25+
padding: 50px 20px;
26+
}
27+
28+
@media (min-width: 576px) {
29+
.eupopup-container.eupopup-container-bottom {
30+
width: 450px;
31+
height: 275px;
32+
margin: -138px 0 0 -225px;
33+
}
34+
}
35+
36+
@media (min-width: 768px) {
37+
.eupopup-container.eupopup-container-bottom {
38+
width: 650px;
39+
height: 250px;
40+
margin: -125px 0 0 -325px;
41+
}
42+
}
43+
44+
.eupopup-container.eupopup-container-bottom .eupopup-body {
45+
color: #343a40;
46+
font-size: $font-size-base;
47+
line-height: initial;
48+
49+
a {
50+
color: $primary;
51+
text-decoration: none;
52+
font-weight: 700;
53+
line-height: 2.5rem;
54+
}
55+
56+
a:hover {
57+
text-decoration: underline
58+
}
59+
}
60+
61+
.eupopup-container.eupopup-container-bottom .eupopup-buttons {
62+
margin-top: 1rem;
63+
64+
.eupopup-button_1 {
65+
@extend .btn;
66+
@extend .btn-primary;
67+
}
68+
}
69+
70+
.eupopup-container.eupopup-container-bottom .eupopup-closebutton {
71+
display: none;
72+
}
16.6 KB
Binary file not shown.

snippets/builtin/visual-depth.scss

-53
This file was deleted.

0 commit comments

Comments
 (0)