alabotski
(Aliaksei L)
1
I write own class.
How I can add styles???
I try StylesSheet and HtmlImport
Nothing work =(
@HtmlImport("frontend://styles/component/withdraw/WithdrawBlock.html")
public class WithdrawBlock extends VerticalLayout {
}
<link rel="import" href="../../../bower_components/polymer/lib/elements/custom-style.html">
<custom-style>
<style>
.withdraw-block {
width: 100%;
}
.withdraw-block .caption {
width: 100%;
border-bottom: 1px solid;
}
</style>
</custom-style>
JavaVaadin
(JavaVaadin Vaadinjava)
2
Лешик ツ:
I write own class.
How I can add styles???
I try StylesSheet and HtmlImport
Nothing work =(
@HtmlImport("frontend://styles/component/withdraw/WithdrawBlock.html")
public class WithdrawBlock extends VerticalLayout {
}
<link rel="import" href="../../../bower_components/polymer/lib/elements/custom-style.html">
<custom-style>
<style>
.withdraw-block {
width: 100%;
}
.withdraw-block .caption {
width: 100%;
border-bottom: 1px solid;
}
</style>
</custom-style>
Hi. I have just done it today.
Create Styles.css in the direction like below (frontend/styles)
then
Add
@StyleSheet(value="/frontend/styles/Styles.css" , loadMode = LoadMode.INLINE)
It helped me.