Skip to content

Commit 8bbdd46

Browse files
b215
1 parent 0961e22 commit 8bbdd46

4 files changed

Lines changed: 25 additions & 4 deletions

File tree

src/Modules/Components/Navbar/Navbar.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,17 @@
157157
}
158158
}
159159
}
160+
// dropdown menu
161+
.#{class('button', 'dropdown')} > .#{class('menu', 'name')} {
162+
background-color: components('navbar', 'menu', 'background-color');
163+
.#{class('menu', 'item')} a {
164+
color: components('navbar', 'menu', 'item', 'color');
165+
&:hover {
166+
color : components('navbar', 'menu', 'hover', 'color');
167+
background-color: components('navbar', 'menu', 'hover', 'background-color');
168+
}
169+
}
170+
}
160171
.#{class('button', 'dropdown')}:last-child,
161172
.#{class('button', 'dropdown')}:last-child > .#{class('button', 'name')}:first-child,
162173
.#{class('button', 'dropdown')}:last-child > .#{class('button', 'name')}:last-child {

src/options.scss

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ $options: (
504504
'button': (
505505
'padding': .935rem 1.4rem
506506
),
507-
'brand' : (
507+
'brand': (
508508
'padding' : 0,
509509
'margin-right': 1rem,
510510
'font-weight' : bold,
@@ -524,6 +524,16 @@ $options: (
524524
'placeholder-color': white,
525525
'focus-outline' : elements('form', 'input', 'outline-width') solid theme('color', 'primary')
526526
),
527+
'menu': ( // settings of dropdown menu in navbar
528+
'background-color': components('menu', 'background-color'),
529+
'item': (
530+
'color': components('menu', 'item', 'href', 'color')
531+
),
532+
'hover': (
533+
'color' : components('menu', 'item', 'hover', 'color'),
534+
'background-color': components('menu', 'item', 'hover', 'background-color')
535+
)
536+
),
527537
'styles': (
528538
(
529539
"light", // theme name (class)

src/punica.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
////////////////////////////////////////////////////////////////
1111
///-------------------------------------------------------------
12-
$active-theme: default;
12+
$active-theme: dark;
1313
///-------------------------------------------------------------
1414
////////////////////////////////////////////////////////////////
1515
$theme-name: if(map.has-key(get.$themes, $active-theme),

src/themes.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ $themes: (
1919
'type' : 'light', // light or dark (required*),
2020
'typography': (
2121
'font-family': 'Inter Tight',
22-
'font-url' : 'https://fonts.googleapis.com/css2?family=Inter+Tight:wght@300;400;500;700&display=swap', // embed/import url
22+
'font-url' : 'https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;700&display=swap', // embed/import url
2323
'font-size' : 1rem,
2424
'font-weight': 400,
2525
'line-height': 1.7
@@ -49,7 +49,7 @@ $themes: (
4949
'type' : 'dark', // light or dark (required*),
5050
'typography': (
5151
'font-family': 'Inter Tight',
52-
'font-url' : 'https://fonts.googleapis.com/css2?family=Inter+Tight:wght@300;400;500;700&display=swap', // embed/import url
52+
'font-url' : 'https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;700&display=swap', // embed/import url
5353
'font-size' : 1rem,
5454
'font-weight': 500,
5555
'line-height': 1.7

0 commit comments

Comments
 (0)