diff --git a/assets/fonts/fontutti.eot b/assets/fonts/fontutti.eot index 0964fb0..a3e3dcf 100644 Binary files a/assets/fonts/fontutti.eot and b/assets/fonts/fontutti.eot differ diff --git a/assets/fonts/fontutti.svg b/assets/fonts/fontutti.svg index 8c8920f..9b6ced2 100644 --- a/assets/fonts/fontutti.svg +++ b/assets/fonts/fontutti.svg @@ -244,6 +244,8 @@ + + diff --git a/assets/fonts/fontutti.ttf b/assets/fonts/fontutti.ttf index e3c0eb7..8880340 100644 Binary files a/assets/fonts/fontutti.ttf and b/assets/fonts/fontutti.ttf differ diff --git a/assets/fonts/fontutti.woff b/assets/fonts/fontutti.woff index 2520c43..0975207 100644 Binary files a/assets/fonts/fontutti.woff and b/assets/fonts/fontutti.woff differ diff --git a/assets/fonts/fontutti.woff2 b/assets/fonts/fontutti.woff2 index 24d38a5..95e6409 100644 Binary files a/assets/fonts/fontutti.woff2 and b/assets/fonts/fontutti.woff2 differ diff --git a/src/index.html b/src/index.html index 5bc6570..c8b8aa7 100644 --- a/src/index.html +++ b/src/index.html @@ -253,6 +253,107 @@
+

Navigation pills

+
+
+

Horizontal

+

+ Navigation pills have a horizontal layout by default. +

+ +
+
+

Vertical

+

+ Navigation pills have a vertical layout with the addition of the flex-column class. +

+

Notifications

diff --git a/src/styles/_font_fontutti.scss b/src/styles/_font_fontutti.scss index 21fd1f4..34f574a 100644 --- a/src/styles/_font_fontutti.scss +++ b/src/styles/_font_fontutti.scss @@ -1,4 +1,4 @@ -$font-hash: 'a2ab4950'; +$font-hash: '17c3eeb2'; @font-face { font-family: 'fontutti'; @@ -166,6 +166,7 @@ $font-hash: 'a2ab4950'; .i-wrench:before { content: '\e874'; } /* '' */ .i-user-alt:before { content: '\e875'; } /* '' */ .i-users-alt:before { content: '\e876'; } /* '' */ +.i-asterisk:before { content: '\e877'; } /* '' */ .i-tv:before { content: '\e8b2'; } /* '' */ .i-blender:before { content: '\e8b7'; } /* '' */ .i-book-open:before { content: '\e8b8'; } /* '' */ diff --git a/src/styles/_mixins.sass b/src/styles/_mixins.sass index cc13bd5..439aad6 100644 --- a/src/styles/_mixins.sass +++ b/src/styles/_mixins.sass @@ -79,6 +79,7 @@ display: block content: ' ' +// TODO: check if mixins box-shadows are still needed with CSS custom properties box-shadows =box-shadow-lg-strong box-shadow: var(--box-shadow-card), 0 var(--spacer-1) calc(var(--spacer) * 2) rgba(0, 0, 0, .15) diff --git a/src/styles/_navigation.sass b/src/styles/_navigation.sass index d0d0f3e..c829cf4 100644 --- a/src/styles/_navigation.sass +++ b/src/styles/_navigation.sass @@ -572,6 +572,52 @@ body span, i, svg pointer-events: none +/* Nav pills */ +.nav-pills + @extend .box + + +list-unstyled + overflow-x: auto + padding: .2rem + +.nav-pills-divider, +.nav-pills-item + margin: .2rem + +.nav-pills-item + border-radius: var(--border-radius) + line-height: var(--lh-sm) + +padding(3, x) + +padding(2, y) + transition: background-color var(--transition-speed) var(--transition-timing-fast), color var(--transition-speed) var(--transition-timing-fast) + user-select: none + white-space: nowrap + + &:hover, + &.active + background-color: var(--color-accent-bg) + color: var(--color-accent) + text-decoration: none + + i + +margin(1, right) + +margin(-1, left) + + &.is-admin + background-color: var(--admin-color-bg) + color: var(--admin-color-text) + + &:hover + background-color: var(--admin-color-bg-hover) + + &.active + color: var(--color-accent) + +fw-bold + +.nav-pills-divider + border-bottom: var(--border-width) solid var(--border-color) + border-right: var(--border-width) solid var(--border-color) + /* Tabs navigation. */ .tabs +border-radius(lg)