Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
ui-styleguide
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VA-Fighters
ui-styleguide
Commits
3f81a6fb
Commit
3f81a6fb
authored
4 years ago
by
xaralis
Browse files
Options
Downloads
Patches
Plain Diff
Add simplified navbar variant
parent
67582007
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
source/_patterns/02-organisms/00-global/simplified-navbar.mustache
+41
-0
41 additions, 0 deletions
...atterns/02-organisms/00-global/simplified-navbar.mustache
source/css/organisms/navbar.pcss
+12
-1
12 additions, 1 deletion
source/css/organisms/navbar.pcss
with
53 additions
and
1 deletion
source/_patterns/02-organisms/00-global/simplified-navbar.mustache
0 → 100644
+
41
−
0
View file @
3f81a6fb
<nav
class=
"navbar navbar--simple __js-root"
>
<ui-app
inline-template
>
<ui-navbar
inline-template
>
<div>
<div
class=
"container container--wide navbar__content"
:class=
"{'navbar__content--initialized': true}"
>
<div
class=
"navbar__brand my-4 flex items-center lg:pr-8 lg:my-0"
>
<a
href=
"#"
>
<img
src=
"/images/logo-round-white.svg"
class=
"w-8"
/>
</a>
<span
class=
"pl-4 font-bold text-xl lg:border-r lg:border-grey-300 lg:pr-8"
>
Celostátní fórum 2021
</span>
</div>
<div
class=
"navbar__menutoggle my-4 flex justify-end lg:hidden"
>
<a
href=
"#"
@
click=
"show = !show"
class=
"no-underline hover:no-underline"
>
<i
class=
"ico--menu text-3xl"
></i>
</a>
</div>
<div
v-if=
"show || isLgScreenSize"
class=
"navbar__main navbar__section navbar__section--expandable container-padding--zero lg:container-padding--auto"
>
<ul
class=
"navbar-menu text-white"
>
<li
class=
"navbar-menu__item"
>
<a
href=
"#"
data-href=
"
{{
link
.
templates-homepage
}}
"
class=
"navbar-menu__link"
>
Hlavní strana
</a>
</li>
<li
class=
"navbar-menu__item"
>
<ui-navbar-subitem
label=
"Lidé"
>
<ul
class=
"navbar-menu__submenu"
>
<li><a
href=
"#"
data-href=
"
{{
link
.
templates-people
}}
"
class=
"navbar-menu__link"
>
Delší link co je delší než hlavní menu položka
</a></li>
</ul>
</ui-navbar-subtitem>
</li>
<li
class=
"navbar-menu__item"
>
<a
href=
"#"
data-href=
"
{{
link
.
templates-pirate-center
}}
"
class=
"navbar-menu__link"
>
Pirátské centrum
</a>
</li>
<li
class=
"navbar-menu__item"
>
<a
href=
"#"
data-href=
"
{{
link
.
templates-contact
}}
"
class=
"navbar-menu__link"
>
Kontakt
</a>
</li>
</ul>
</div>
</div>
</div>
</ui-navbar>
</ui-app>
</nav>
This diff is collapsed.
Click to expand it.
source/css/organisms/navbar.pcss
+
12
−
1
View file @
3f81a6fb
...
...
@@ -16,6 +16,12 @@
}
}
.navbar--simple .navbar__content {
grid-template-areas: "brand menutoggle"
"main main"
"actions actions";
}
.navbar__brand {
grid-area: brand;
}
...
...
@@ -92,13 +98,18 @@
.navbar__content {
grid-template-areas: "brand external actions"
"brand main actions";
grid-template-columns: 8rem 1fr auto;
grid-template-columns: 8rem 1fr auto;
&:not(.navbar__content--initialized) {
@apply grid;
}
}
.navbar--simple .navbar__content {
grid-template-areas: "brand main actions";
grid-template-columns: auto 1fr auto;
}
.navbar__section--expandable {
@apply bg-transparent px-0 py-0 m-0;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment