Skip to content

Commit

Permalink
docs(content): add angular example styles
Browse files Browse the repository at this point in the history
  • Loading branch information
thetaPC committed Sep 1, 2023
1 parent 0d37140 commit 9bdfc83
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
```css
ion-content::part(scroll) {
padding-top: var(--ion-safe-area-top, 0);
padding-bottom: var(--ion-safe-area-bottom, 0);
padding-left: var(--ion-safe-area-left, 0);
padding-right: var(--ion-safe-area-right, 0);
}
```
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,4 @@
--ion-safe-area-left: 20px;
--ion-safe-area-right: 20px;
}

ion-content::part(scroll) {
padding-top: var(--ion-safe-area-top, 0);
padding-bottom: var(--ion-safe-area-bottom, 0);
padding-left: var(--ion-safe-area-left, 0);
padding-right: var(--ion-safe-area-right, 0);
}
```
2 changes: 2 additions & 0 deletions static/usage/v7/content/theming/safe-area/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import react_main_css from './react/main_css.md';
import vue from './vue.md';

import angular_example_component_html from './angular/example_component_html.md';
import angular_example_component_css from './angular/example_component_css.md';
import angular_global_css from './angular/global_css.md';

<Playground
Expand All @@ -24,6 +25,7 @@ import angular_global_css from './angular/global_css.md';
angular: {
files: {
'src/app/example.component.html': angular_example_component_html,
'src/app/example.component.css': angular_example_component_css,
'src/global.css': angular_global_css,
},
},
Expand Down

0 comments on commit 9bdfc83

Please sign in to comment.