Skip to content

Commit 5c8553e

Browse files
committed
Add builtin snippets
1 parent 781a3bb commit 5c8553e

3 files changed

+130
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/**
2+
* Snippet Title: Darken hover background color for secondary menu
3+
* Domain: theme_boost_union
4+
* Scope: global
5+
* Goal: accessibility
6+
* Description: Darken the background color of secondary menu items while hovering to show more contrast agains other unselected menu items.
7+
*
8+
* @package theme_boost_union
9+
* @copyright 2024 The American University in Cairo
10+
* @author Heba Amer <[email protected]>
11+
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
12+
*/
13+
14+
.secondary-navigation .moremenu .nav-link:hover, secondary-navigation .moremenu .nav-link:focus {
15+
background-color: $gray-400 !important;
16+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/**
2+
* Snippet Title: Collection of fixes for visual flaws
3+
* Domain: theme_boost_union
4+
* Scope: global
5+
* Goal: bugfix
6+
* Description:
7+
* <ol>Collection of fixes for visual flaws in Boost theme
8+
* <li>Fix for visually cropped right border of secondary menu item</li>
9+
* <li>Fix for XYZ</li>
10+
* </ol>
11+
*
12+
* @package theme_boost_union
13+
* @copyright Luther Blissett
14+
* @author Luther Blissett
15+
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
16+
*/
17+
18+
// Fixing
19+
.moremenu .nav-link.active:focus, .moremenu .nav-link.active:hover {
20+
z-index: 2;
21+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
/**
2+
* Snippet Title: Cookies Popup Enhancement
3+
* Domain: theme_boost_union
4+
* Scope: global
5+
* Goal: easeofuse
6+
* Description: Enhance the popup cookies dialog when first visiting a moodle website
7+
*
8+
* @package theme_boost_union
9+
* @copyright 2024 The American University in Cairo
10+
* @author Heba Amer <[email protected]>
11+
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
12+
*/
13+
14+
.eupopup-container.eupopup-container-bottom {
15+
flex-direction: column;
16+
justify-content: center;
17+
background-color: #fff;
18+
border-radius: 10px;
19+
box-shadow: 4px 4px 12px 2000px rgba(0,0,0,.56);
20+
position: absolute;
21+
top: 50%;
22+
left: 50%;
23+
width: 320px;
24+
height: 330px;
25+
margin: -270px 0 0 -160px;
26+
padding: 50px 20px
27+
}
28+
29+
@media (min-width: 576px) {
30+
.eupopup-container.eupopup-container-bottom {
31+
width:450px;
32+
height: 330px;
33+
margin: -270px 0 0 -220px
34+
}
35+
}
36+
37+
@media (min-width: 768px) {
38+
.eupopup-container.eupopup-container-bottom {
39+
width:650px;
40+
height: 300px;
41+
margin: -135px 0 0 -320px
42+
}
43+
}
44+
45+
.eupopup-container.eupopup-container-bottom .eupopup-body {
46+
color: #343a40;
47+
font-size: 1.2rem;
48+
line-height: 1.5rem
49+
}
50+
51+
.eupopup-container.eupopup-container-bottom .eupopup-body a {
52+
color: #8eaf3e;
53+
text-decoration: none;
54+
font-weight: 700;
55+
line-height: 2.5rem
56+
}
57+
58+
.eupopup-container.eupopup-container-bottom .eupopup-body a:hover {
59+
text-decoration: underline
60+
}
61+
62+
.eupopup-container.eupopup-container-bottom .eupopup-buttons {
63+
margin-top: 2rem
64+
}
65+
66+
.eupopup-container.eupopup-container-bottom .eupopup-buttons .eupopup-button_1 {
67+
background-color: #ff7f00;
68+
color: #fff;
69+
font-size: 1.2rem;
70+
font-weight: 600;
71+
padding: .75rem 1.5rem 1rem 1.5rem;
72+
border-radius: .5rem;
73+
display: inline-block;
74+
text-align: center;
75+
transition: filter 0.15s ease-in-out
76+
}
77+
78+
.eupopup-container.eupopup-container-bottom .eupopup-buttons .eupopup-button_1:hover {
79+
text-decoration: none;
80+
filter: brightness(85%)
81+
}
82+
83+
.eupopup-container.eupopup-container-bottom .eupopup-closebutton {
84+
font-weight: 500;
85+
color: #343a40;
86+
opacity: .8;
87+
font-size: 35px;
88+
padding: 10px 20px
89+
}
90+
91+
.eupopup-container.eupopup-container-bottom .eupopup-closebutton:hover {
92+
color: #343a40
93+
}

0 commit comments

Comments
 (0)