1
0
mirror of https://github.com/tabler/tabler.git synced 2026-07-18 11:31:41 +04:00

sidenav expand fix

This commit is contained in:
chomik
2019-05-08 21:57:16 +02:00
parent 96d0020312
commit ff61eeedf7
9 changed files with 1359 additions and 1115 deletions
+1 -1
View File
@@ -5,10 +5,10 @@ bs.init({
server: { server: {
routes: { routes: {
'/': 'tmp', '/': 'tmp',
'/dist/fonts': 'static/fonts',
'/dist': 'dist', '/dist': 'dist',
'/libs': 'static/libs', '/libs': 'static/libs',
'/img': 'static/img', '/img': 'static/img',
'/fonts': 'static/fonts',
} }
}, },
files: ['tmp/**/*', 'dist/css/*.css', 'dist/js/*.js'], files: ['tmp/**/*', 'dist/css/*.css', 'dist/js/*.js'],
-2
View File
@@ -1,4 +1,2 @@
<link href="{{ site.base }}/dist/css/tabler.css" rel="stylesheet" /> <link href="{{ site.base }}/dist/css/tabler.css" rel="stylesheet" />
<link href="{{ site.base }}/fonts/feather.css" rel="stylesheet" />
+1 -1
View File
@@ -1,3 +1,3 @@
{% capture class %}{% if include.class %} {{ include.class }}{% endif %}{% if include.color %} text-{{ include.color }}{% endif %}{% endcapture %} {% capture class %}{% if include.class %} {{ include.class }}{% endif %}{% if include.color %} text-{{ include.color }}{% endif %}{% endcapture %}
{% assign class = class | strip %} {% assign class = class | strip %}
<i class="fe fe-{{ include.icon }}"></i> <i class="icon fe fe-{{ include.icon }}"></i>
+1350
View File
File diff suppressed because it is too large Load Diff
+2 -6
View File
@@ -27,18 +27,14 @@ Sidebar
&[data-toggle="collapse"] { &[data-toggle="collapse"] {
&:after { &:after {
display: block; display: block;
content: ''; font-family: 'Feather' !important;
content: $icon-fe-chevron-down;
margin-left: auto; margin-left: auto;
transition: transform .3s; transition: transform .3s;
width: 1rem;
height: 1rem;
background: red;
//background: url("<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down"><polyline points="6 9 12 15 18 9"></polyline></svg>")
} }
&[aria-expanded="true"]:after { &[aria-expanded="true"]:after {
transform: rotate(-180deg); transform: rotate(-180deg);
background: green;
} }
} }
} }
+3
View File
@@ -5,6 +5,8 @@
@import "../node_modules/bootstrap/scss/bootstrap"; @import "../node_modules/bootstrap/scss/bootstrap";
@import "fonts/feather";
@import "layout/webfonts"; @import "layout/webfonts";
@import "layout/core"; @import "layout/core";
@@ -58,5 +60,6 @@
@import "utils/opacity"; @import "utils/opacity";
@import "utils/shadow"; @import "utils/shadow";
@import "dark"; @import "dark";
@import "rtl"; @import "rtl";
+1 -15
View File
@@ -1,30 +1,16 @@
.icon { .icon {
width: 1em;
height: 1em;
font-size: 1em; font-size: 1em;
vertical-align: -.2em; vertical-align: -.1em;
} }
.icon-md { .icon-md {
width: px2rem(20px);
height: px2rem(20px);
font-size: px2rem(20px); font-size: px2rem(20px);
} }
.icon-lg { .icon-lg {
width: px2rem(40px);
height: px2rem(40px);
font-size: px2rem(40px); font-size: px2rem(40px);
} }
.icon-thin {
stroke-width: 1.5px;
}
.icon-filled {
fill: currentColor;
}
.icons-list { .icons-list {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
+1 -3
View File
@@ -12,8 +12,6 @@
border-radius: 3px; border-radius: 3px;
.icon { .icon {
width: 1.25rem; font-size: 1.25rem;
height: 1.25rem;
vertical-align: middle;
} }
} }
File diff suppressed because it is too large Load Diff