Skip to content

feat(docs): fixing docs's scroll #181

Merged
merged 2 commits into from
Jul 22, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions packages/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@
yarn run build:mosaic-examples
```

2. generate components for Docs App
```bash
yarn run build:mosaic
```
3. generate `docs-content` folder
2. generate `docs-content` folder
```bash
yarn run build:docs
```
Expand Down
12 changes: 8 additions & 4 deletions packages/docs/src/_app-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,18 @@
$warn: map-get($theme, warn);
$background: map-get($theme, background);
$foreground: map-get($theme, foreground);
$next-theme: mc-palette($mat-red);
//$next-theme: mc-palette($map-red); Переменная $map-red не определена

.docs-app-background {
background: mc-palette($background, background);
background: map-get($background, background);
}

.docs-footer {
background: mc-palette($primary);
color: mc-palette($primary, default-contrast);
background: map-get($primary, background);
color: map-get($primary, default-contrast);
}

.docs-navbar-header {
background: map-get($background, background);
}
}
8 changes: 8 additions & 0 deletions packages/docs/src/app/components/navbar/navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,11 @@
height: 64px;
border-bottom: 1px solid #e6e7e8;
}

.docs-navbar-header_fixed{
position: fixed;
left: 0px;
top: 0px;
right: 0px;
z-index: 1000;
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<header role="header" class="docs-navbar-header">
<header role="header" class="docs-navbar-header docs-navbar-header_fixed">
<div class="icon">
<a href="#/en">
<img src="https://camo.githubusercontent.com/87a8f7c8b454d1c5bd916e286f682b68a178e3c4/68747470733a2f2f692e6962622e636f2f66514e506776362f6c6f676f2d706e672d3230302e706e67" alt="positive_js_logo" border="0" data-canonical-src="https://i.ibb.co/fQNPgv6/logo-png-200.png"
Expand Down
2 changes: 2 additions & 0 deletions packages/docs/src/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@ $theme: mc-light-theme($primary, $second, $error, $info, $success, $warning);
// Include all theme styles for the components.
@include mosaic-theme($theme);

@include mosaic-docs-app-theme($theme);

@include layout-padding-margin();