You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -2,10 +2,10 @@
2
2
template: api-index
3
3
---
4
4
5
-
import APIList from '@site/src/components/APIList';
5
+
import APIList from '@theme/APIList';
6
6
7
7
# API Index
8
8
9
9
Each Ionic [component](/docs/components) consists of one or more [custom elements](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements). Each custom element, in turn, may expose properties, methods, events, and CSS custom properties.
Copy file name to clipboardExpand all lines: docs/layout/structure.md
+9-20
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,8 @@
2
2
initialTab: 'preview'
3
3
---
4
4
5
-
import DocsCard from '@site/src/components/DocsCard';
6
-
import DocsCards from '@site/src/components/DocsCards';
5
+
import DocsCard from '@theme/DocsCard';
6
+
import DocsCards from '@theme/DocsCards';
7
7
8
8
# Structure
9
9
@@ -61,7 +61,7 @@ As you can see, a toolbar in a header appears above the content. Sometimes an ap
61
61
62
62
### Header and Footer
63
63
64
-
These can also be combined on one page to have a toolbar above *and* below the content.
64
+
These can also be combined on one page to have a toolbar above _and_ below the content.
65
65
66
66
```html
67
67
<ion-app>
@@ -134,15 +134,11 @@ A standard layout among mobile apps includes the ability to toggle a side [menu]
134
134
135
135
<ion-content>
136
136
<ion-list>
137
-
<ion-list-header>
138
-
Navigate
139
-
</ion-list-header>
137
+
<ion-list-header> Navigate </ion-list-header>
140
138
<ion-menu-toggleauto-hide="false">
141
139
<ion-itembutton>
142
-
<ion-iconslot="start"name='home'></ion-icon>
143
-
<ion-label>
144
-
Home
145
-
</ion-label>
140
+
<ion-iconslot="start"name="home"></ion-icon>
141
+
<ion-label> Home </ion-label>
146
142
</ion-item>
147
143
</ion-menu-toggle>
148
144
</ion-list>
@@ -176,14 +172,12 @@ A standard layout among mobile apps includes the ability to toggle a side [menu]
176
172
177
173
You can view a live example of this setup in Angular [here](https://stackblitz.com/edit/ionic-ng-menu-layout) and for React [here](https://stackblitz.com/edit/ionic-react-menu).
178
174
179
-
180
175
## Split Pane Layout
181
176
182
177
A [split pane](../api/split-pane.md) layout has a more complex structure because it can combine the previous layouts. It allows for multiple views to be displayed when the viewport is above a specified breakpoint. If the device's screen size is below a certain size, the split pane view will be hidden.
183
178
184
179
By default, the split pane view will show when the screen is larger than `768px`, or the `md` breakpoint, but this can be customized to use different breakpoints by setting the `when` property. Below is an example where the split pane contains a menu that is visible for `sm` screens and up, or when the viewport is larger than `576px`. By resizing the browser horizontally so that the app is smaller than this, the split pane view will disappear.
Copy file name to clipboardExpand all lines: docs/react.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -7,8 +7,8 @@ image: /img/meta/open-graph.png
7
7
description: Ionic is the app platform for web developers. Build amazing mobile, web, and desktop apps all with one shared code base and open web standards
8
8
---
9
9
10
-
import DocsCard from '@site/src/components/DocsCard';
11
-
import DocsCards from '@site/src/components/DocsCards';
Copy file name to clipboardExpand all lines: docs/studio.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -2,14 +2,14 @@
2
2
hide_table_of_contents: true
3
3
---
4
4
5
-
import DocsCard from '@site/src/components/DocsCard';
6
-
import DocsCards from '@site/src/components/DocsCards';
5
+
import DocsCard from '@theme/DocsCard';
6
+
import DocsCards from '@theme/DocsCards';
7
7
8
8
# Welcome to Studio
9
9
10
10
Ionic Studio is a fast and easy app builder that helps teams build and prototype apps with minimal coding.
11
11
12
-
Studio is designed to integrate into an existing developer workflow, rather than replace it, enabling developers and architects to build visually *or* drop down to code using their favorite tools.
12
+
Studio is designed to integrate into an existing developer workflow, rather than replace it, enabling developers and architects to build visually _or_ drop down to code using their favorite tools.
13
13
14
14
Studio
15
15
fully supports bringing code back into the tool, something virtually unheard of in the app development tools market.
| <figure><imgalt="Application with theme-color meta in light mode"src="/img/theming/theme-color-light.png" /></figure> | <figure><imgalt="Application with theme-color meta in dark mode"src="/img/theming/theme-color-dark.png" /></figure> |
33
41
34
42
The `theme-color` meta can also be used to customize the toolbar in Safari on macOS Monterey or newer.
35
43
36
-
Safari on iOS 15 and macOS will automatically determine an appropriate theme color to use, but adding this meta tag is useful if you need more control over the theme.
44
+
Safari on iOS 15 and macOS will automatically determine an appropriate theme color to use, but adding this meta tag is useful if you need more control over the theme.
37
45
38
46
There is a small subset of colors that browsers will not use as they interfere with the browser interface. For example, setting `content="red"` will not work in Safari on macOS because that color interferes with the red close button in the toolbar. If you run into this situation, try altering your color selection slightly.
39
47
@@ -49,34 +57,32 @@ While the application and stepped variables in the themes section are useful for
|`--ion-grid-columns`| Number of columns in the grid |
76
+
|`--ion-grid-padding-xs`| Padding of the grid for xs breakpoints |
77
+
|`--ion-grid-padding-sm`| Padding of the grid for sm breakpoints |
78
+
|`--ion-grid-padding-md`| Padding of the grid for md breakpoints |
79
+
|`--ion-grid-padding-lg`| Padding of the grid for lg breakpoints |
80
+
|`--ion-grid-padding-xl`| Padding of the grid for xl breakpoints |
81
+
|`--ion-grid-column-padding-xs`| Padding of the grid columns for xs breakpoints |
82
+
|`--ion-grid-column-padding-sm`| Padding of the grid columns for sm breakpoints |
83
+
|`--ion-grid-column-padding-md`| Padding of the grid columns for md breakpoints |
84
+
|`--ion-grid-column-padding-lg`| Padding of the grid columns for lg breakpoints |
85
+
|`--ion-grid-column-padding-xl`| Padding of the grid columns for xl breakpoints |
80
86
81
87
## Known Limitations with Variables
82
88
@@ -90,14 +96,14 @@ There is not yet full <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/
90
96
--violet: #8a2be2;
91
97
92
98
/* rgba(#8a2be2, .5) */
93
-
color: rgba(var(--violet), .5) /* ERROR! Doesn't support hex. */
99
+
color: rgba(var(--violet), 0.5);/* ERROR! Doesn't support hex. */
94
100
}
95
101
96
102
.working {
97
103
--violet-rgb: 138, 43, 226;
98
104
99
105
/* rgba(138, 43, 226, .5) */
100
-
color: rgba(var(--violet-rgb), .5) /* WORKS! */
106
+
color: rgba(var(--violet-rgb), 0.5);/* WORKS! */
101
107
}
102
108
```
103
109
@@ -110,12 +116,12 @@ Ionic uses colors with an opacity (alpha) in several components. In order for th
110
116
```css
111
117
:root {
112
118
/* These examples use the same color: sienna. */
113
-
--ion-text-color: #a0522d;
114
-
--ion-text-color-rgb: 160, 82, 45;
119
+
--ion-text-color: #a0522d;
120
+
--ion-text-color-rgb: 160, 82, 45;
115
121
116
122
/* These examples use the same color: lightsteelblue. */
117
-
--ion-background-color: #b0c4de;
118
-
--ion-background-color-rgb: 176, 196, 222;
123
+
--ion-background-color: #b0c4de;
124
+
--ion-background-color-rgb: 176, 196, 222;
119
125
}
120
126
```
121
127
@@ -127,7 +133,6 @@ body {
127
133
}
128
134
```
129
135
130
-
131
136
### Variables in Media Queries
132
137
133
138
CSS variables in [media queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries) are not currently supported, but there are open drafts to add [custom media queries](https://drafts.csswg.org/mediaqueries-5/#custom-mq) and [custom environment variables](https://drafts.csswg.org/css-env-1/) that would solve this problem! However, with the current state of support, the following will **not** work:
@@ -142,7 +147,6 @@ CSS variables in [media queries](https://developer.mozilla.org/en-US/docs/Web/CS
142
147
}
143
148
```
144
149
145
-
146
150
### Modifying CSS Color Variables
147
151
148
152
While it is possible to easily alter a color in Sass using its built-in functions, it is currently not as easy to modify colors set in CSS Variables. This can be accomplished in CSS by splitting the [RGB](https://developer.mozilla.org/en-US/docs/Glossary/RGB) or [HSL](https://en.wikipedia.org/wiki/HSL_and_HSV) channels and modifying each value, but it is complex and has missing functionality.
0 commit comments