This repository has been archived by the owner on May 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added documentation on styling of Grid (#185)
- Loading branch information
Showing
5 changed files
with
330 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
tutorial::components/tutorial-flow-grid.asciidoc | ||
|
||
vaadin-grid vaadin-grid-cell-content img { | ||
max-height: 4em; | ||
} | ||
|
||
|
||
vaadin-grid.styled vaadin-grid-cell-content img { | ||
border-radius: 2em; | ||
margin-left: 50%; | ||
transform: translate(-50%); | ||
} | ||
|
||
.styled .style-female { | ||
--custom-text-field-bg: #ff99cc; | ||
} | ||
.styled .style-male { | ||
--custom-text-field-bg: #99ccff; | ||
} | ||
|
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,34 @@ | ||
tutorial::components/tutorial-flow-grid.asciidoc | ||
|
||
<dom-module id="custom-grid" theme-for="vaadin-grid"> | ||
<template> | ||
<style> | ||
:host(.styled) #table { | ||
border-radius: 20px; | ||
box-shadow: 0 0 5px rgba(81, 203, 238, 1); | ||
border: 1px solid rgba(81, 203, 238, 1); | ||
} | ||
:host(.styled) #header { | ||
border: none; | ||
border-bottom: 1px solid rgba(81, 203, 238, 1); | ||
} | ||
:host(.styled) #header tr { | ||
text-align: center; | ||
text-shadow: 0 0 3px rgba(81, 203, 238, 1); | ||
text-transform: uppercase; | ||
} | ||
</style> | ||
</template> | ||
</dom-module> | ||
|
||
|
||
<dom-module id="custom-text-field" theme-for="vaadin-text-field"> | ||
<template> | ||
<style> | ||
.vaadin-text-field-container [part="input-field"] { | ||
background-color: var(--custom-text-field-bg, var(--lumo-contrast-10pct)); | ||
} | ||
</style> | ||
</template> | ||
</dom-module> | ||
|
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