Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tilelayout): add styles to Fluent
- Loading branch information
1 parent
a9f4367
commit cb8aeee
Showing
7 changed files
with
119 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
@use "../core" as *; | ||
@use "_variables.scss" as *; | ||
|
||
@mixin kendo-tilelayout--layout() { | ||
|
||
.k-tilelayout { | ||
border-width: var( --kendo-tilelayout-border-width, #{$kendo-tilelayout-border-width} ); | ||
border-style: solid; | ||
box-sizing: border-box; | ||
outline: 0; | ||
display: grid; | ||
-webkit-touch-callout: none; | ||
-webkit-tap-highlight-color: $rgba-transparent; | ||
} | ||
|
||
.k-tilelayout-item { | ||
position: relative; | ||
z-index: 0; | ||
} | ||
|
||
.k-layout-item-hint { | ||
@include border-radius( var( --kendo-tilelayout-hint-border-radius, #{$kendo-tilelayout-hint-border-radius} ) ); | ||
border-width: var( --kendo-tilelayout-hint-border-width, #{$kendo-tilelayout-hint-border-width} ); | ||
border-style: solid; | ||
position: relative; | ||
|
||
&.k-layout-item-hint-resize { | ||
z-index: 3; | ||
} | ||
} | ||
|
||
.k-tilelayout-item-header.k-card-header { | ||
z-index: 0; | ||
} | ||
|
||
.k-tilelayout-item-body { | ||
min-height: 0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
@use "../core/mixins" as *; | ||
@use "_variables.scss" as *; | ||
|
||
@mixin kendo-tilelayout--theme() { | ||
|
||
.k-tilelayout { | ||
@include fill( | ||
$bg: var( --kendo-tilelayout-bg, #{$kendo-tilelayout-bg} ) | ||
); | ||
} | ||
|
||
.k-layout-item-hint { | ||
@include fill( | ||
$bg: var( --kendo-tilelayout-hint-bg, #{$kendo-tilelayout-hint-bg} ), | ||
$border: var( --kendo-tilelayout-hint-border, #{$kendo-tilelayout-hint-border} ) | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
@use "../core/" as *; | ||
@use "../core/color-system" as *; | ||
@use "../card/_variables.scss" as *; | ||
@use "sass:color"; | ||
|
||
/// Width of the border around the tilelayout. | ||
/// @group tilelayout | ||
$kendo-tilelayout-border-width: 0px !default; | ||
/// Background color of the tilelayout. | ||
/// @group tilelayout | ||
$kendo-tilelayout-bg: get-theme-color-var( neutral-10 ) !default; | ||
|
||
/// Width of the border around the tilelayout hint. | ||
/// @group tilelayout | ||
$kendo-tilelayout-hint-border-width: 1px !default; | ||
/// Color of the border around the tilelayout hint. | ||
/// @group tilelayout | ||
$kendo-tilelayout-hint-border: var( --kendo-component-border, initial ) !default; | ||
/// Radius of the border around the tilelayout hint. | ||
/// @group tilelayout | ||
$kendo-tilelayout-hint-border-radius: var( --kendo-border-radius-lg, initial ) !default; | ||
/// Background color of the tilelayout hint. | ||
/// @group tilelayout | ||
$kendo-tilelayout-hint-bg: rgba(255, 255, 255, .2) !default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Module meta | ||
$_kendo-module-meta: ( | ||
name: "tilelayout", | ||
dependencies: ( | ||
"card" | ||
) | ||
); | ||
|
||
|
||
// Component | ||
@forward "_variables.scss"; | ||
@use "_layout.scss" as *; | ||
@use "_theme.scss" as *; | ||
|
||
// Register | ||
@use "../core/module-system/" as module; | ||
@include module.register( $_kendo-module-meta... ); | ||
|
||
// Expose | ||
@mixin styles() { | ||
@include module.render( "tilelayout" ) { | ||
@include kendo-tilelayout--layout(); | ||
@include kendo-tilelayout--theme(); | ||
} | ||
} |