aboutsummaryrefslogtreecommitdiffstats
path: root/scss/uikit/components/switcher.scss
diff options
context:
space:
mode:
Diffstat (limited to 'scss/uikit/components/switcher.scss')
-rw-r--r--scss/uikit/components/switcher.scss47
1 files changed, 47 insertions, 0 deletions
diff --git a/scss/uikit/components/switcher.scss b/scss/uikit/components/switcher.scss
new file mode 100644
index 00000000..0d99cdf7
--- /dev/null
+++ b/scss/uikit/components/switcher.scss
@@ -0,0 +1,47 @@
+// Name: Switcher
+// Description: Component to navigate through different content panes
+//
+// Component: `uk-switcher`
+//
+// States: `uk-active`
+//
+// ========================================================================
+
+
+/* ========================================================================
+ Component: Switcher
+ ========================================================================== */
+
+/*
+ * Reset list
+ */
+
+.uk-switcher {
+ margin: 0;
+ padding: 0;
+ list-style: none;
+}
+
+
+/* Items
+ ========================================================================== */
+
+/*
+ * Hide not active items
+ */
+
+.uk-switcher > :not(.uk-active) { display: none; }
+
+/*
+ * Remove margin from the last-child
+ */
+
+.uk-switcher > * > :last-child { margin-bottom: 0; }
+
+
+// Hooks
+// ========================================================================
+
+@if(mixin-exists(hook-switcher-misc)) {@include hook-switcher-misc();}
+
+// @mixin hook-switcher-misc(){} \ No newline at end of file