Skip to content

Commit 3cfff72

Browse files
docs(card): remove extra ios header styling from v7 playgrounds (#2762)
1 parent b3177f2 commit 3cfff72

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+24
-316
lines changed
File renamed without changes.

static/usage/v7/card/basic/angular/example_component_css.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

static/usage/v7/card/basic/demo.html

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,14 @@
77
<title>Card</title>
88
<link rel="stylesheet" href="../../../common.css" />
99
<script src="../../../common.js"></script>
10-
<script type="module" src="https://cdn.jsdelivr.net/npm/@ionic/core@6/dist/ionic/ionic.esm.js"></script>
11-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@ionic/core@6/css/ionic.bundle.css" />
10+
<script type="module" src="https://cdn.jsdelivr.net/npm/@ionic/core@next/dist/ionic/ionic.esm.js"></script>
11+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@ionic/core@next/css/ionic.bundle.css" />
1212

1313
<style>
1414
.container {
1515
max-width: 400px;
1616
margin: 0 auto;
1717
}
18-
19-
/* iOS places the subtitle above the title */
20-
ion-card-header.ios {
21-
display: flex;
22-
flex-flow: column-reverse;
23-
}
2418
</style>
2519
</head>
2620

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,12 @@
11
import Playground from '@site/src/components/global/Playground';
22

33
import javascript from './javascript.md';
4-
5-
import react_main_tsx from './react/main_tsx.md';
6-
import react_main_css from './react/main_css.md';
7-
4+
import react from './react.md';
85
import vue from './vue.md';
9-
10-
import angular_example_component_html from './angular/example_component_html.md';
11-
import angular_example_component_css from './angular/example_component_css.md';
6+
import angular from './angular.md';
127

138
<Playground
149
version="7"
15-
code={{
16-
javascript,
17-
react: {
18-
files: {
19-
'src/main.tsx': react_main_tsx,
20-
'src/main.css': react_main_css,
21-
},
22-
},
23-
vue,
24-
angular: {
25-
files: {
26-
'src/app/example.component.html': angular_example_component_html,
27-
'src/app/example.component.css': angular_example_component_css,
28-
},
29-
},
30-
}}
10+
code={{ javascript, react, vue, angular }}
3111
src="usage/v7/card/basic/demo.html"
3212
/>

static/usage/v7/card/basic/javascript.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,4 @@
99
Here's a small text description for the card content. Nothing more, nothing less.
1010
</ion-card-content>
1111
</ion-card>
12-
13-
<style>
14-
/* iOS places the subtitle above the title */
15-
ion-card-header.ios {
16-
display: flex;
17-
flex-flow: column-reverse;
18-
}
19-
</style>
2012
```

static/usage/v7/card/basic/react/main_tsx.md renamed to static/usage/v7/card/basic/react.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
import React from 'react';
33
import { IonCard, IonCardContent, IonCardHeader, IonCardSubtitle, IonCardTitle } from '@ionic/react';
44

5-
import './main.css';
6-
75
function Example() {
86
return (
97
<IonCard>

static/usage/v7/card/basic/react/main_css.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

static/usage/v7/card/basic/vue.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,4 @@
2020
components: { IonCard, IonCardContent, IonCardHeader, IonCardSubtitle, IonCardTitle },
2121
});
2222
</script>
23-
24-
<style scoped>
25-
/* iOS places the subtitle above the title */
26-
ion-card-header.ios {
27-
display: flex;
28-
flex-flow: column-reverse;
29-
}
30-
</style>
3123
```
File renamed without changes.

static/usage/v7/card/buttons/angular/example_component_css.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)