Skip to content

Commit d15e5b6

Browse files
refactor(icon and nav): icon and nav dev docs from less to scss
1 parent 2ea6bc4 commit d15e5b6

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

docs/components/_index.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/// load styles required to demonstrate each component
22
@import "box/index";
33
@import "grid/index";
4+
@import "icon/index";
5+
@import "navigation/index";
46
@import "typography/index";
57

68
/// load styles needed to test component visuals

docs/styles/demo/icon-docs.less renamed to docs/components/icon/_index.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
.icon-media {
2-
background-color: @gray-0;
3-
border: 1px solid @gray-400;
2+
background-color: $gray-0;
3+
border: 1px solid $gray-400;
44
height: 100%;
55
padding: 1.25rem;
66

77
.media__icon {
8-
color: @gray-1000;
8+
color: $gray-1000;
99
display: flex;
1010
font-size: 2em;
1111
line-height: 1;
@@ -28,6 +28,6 @@ hx-icon {
2828
}
2929

3030
&.danger {
31-
color: @red-900;
31+
color: $red-900;
3232
}
3333
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.nav-demo {
22
.hxNav {
3-
width: @app-nav-width;
3+
width: $app-nav-width;
44
}
55
}

docs/docs.less

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,6 @@ min-version {
177177
\* ---------------------------------------- */
178178

179179
// Import from docs/styles/*
180-
@import 'demo/icon-docs';
181-
@import 'demo/nav-docs';
182180
@import 'demo/panel-docs';
183181
@import 'demo/tabset-docs';
184182
@import 'demo/tooltip-docs';

0 commit comments

Comments
 (0)