mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 15:51:16 +08:00
@ -64,6 +64,13 @@ SplitPane also provides some predefined media queries that can be used.
|
|||||||
| `isVisible` | Returns if the split pane is toggled or not |
|
| `isVisible` | Returns if the split pane is toggled or not |
|
||||||
|
|
||||||
|
|
||||||
|
## CSS Custom Properties
|
||||||
|
|
||||||
|
| Name | Description |
|
||||||
|
| ---------- | -------------------- |
|
||||||
|
| `--border` | Border between panes |
|
||||||
|
|
||||||
|
|
||||||
----------------------------------------------
|
----------------------------------------------
|
||||||
|
|
||||||
*Built with [StencilJS](https://stenciljs.com/)*
|
*Built with [StencilJS](https://stenciljs.com/)*
|
||||||
|
|||||||
@ -1,15 +1,18 @@
|
|||||||
|
|
||||||
@import "./split-pane";
|
@import "./split-pane";
|
||||||
@import "./split-pane.ios.vars";
|
@import "./split-pane.ios.vars";
|
||||||
|
|
||||||
// Split Pane
|
// Split Pane
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
.split-pane-ios {
|
||||||
|
--border: #{$split-pane-ios-border};
|
||||||
|
}
|
||||||
|
|
||||||
.split-pane-ios.split-pane-visible > .split-pane-side {
|
.split-pane-ios.split-pane-visible > .split-pane-side {
|
||||||
min-width: $split-pane-ios-side-min-width;
|
min-width: $split-pane-ios-side-min-width;
|
||||||
max-width: $split-pane-ios-side-max-width;
|
max-width: $split-pane-ios-side-max-width;
|
||||||
|
|
||||||
border-right: $split-pane-ios-border;
|
border-right: var(--border);
|
||||||
border-left: 0;
|
border-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -18,5 +21,5 @@
|
|||||||
max-width: $split-pane-ios-side-max-width;
|
max-width: $split-pane-ios-side-max-width;
|
||||||
|
|
||||||
border-right: 0;
|
border-right: 0;
|
||||||
border-left: $split-pane-ios-border;
|
border-left: var(--border);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,11 +4,15 @@
|
|||||||
// Split Pane
|
// Split Pane
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
.split-pane-md {
|
||||||
|
--border: #{$split-pane-md-border};
|
||||||
|
}
|
||||||
|
|
||||||
.split-pane-md.split-pane-visible > .split-pane-side {
|
.split-pane-md.split-pane-visible > .split-pane-side {
|
||||||
min-width: $split-pane-md-side-min-width;
|
min-width: $split-pane-md-side-min-width;
|
||||||
max-width: $split-pane-md-side-max-width;
|
max-width: $split-pane-md-side-max-width;
|
||||||
|
|
||||||
border-right: $split-pane-md-border;
|
border-right: var(--border);
|
||||||
border-left: 0;
|
border-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -17,5 +21,5 @@
|
|||||||
max-width: $split-pane-md-side-max-width;
|
max-width: $split-pane-md-side-max-width;
|
||||||
|
|
||||||
border-right: 0;
|
border-right: 0;
|
||||||
border-left: $split-pane-md-border;
|
border-left: var(--border);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,6 +4,10 @@
|
|||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
.split-pane {
|
.split-pane {
|
||||||
|
/**
|
||||||
|
* @prop --border: Border between panes
|
||||||
|
*/
|
||||||
|
|
||||||
@include position(0, 0, 0, 0);
|
@include position(0, 0, 0, 0);
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
Reference in New Issue
Block a user