Commit 43c52cb9 authored by Tae Hoon's avatar Tae Hoon

Update modifier class notation

parent e0a66b98
......@@ -18,9 +18,9 @@ export default {
computed: {
classes () {
return [{
'user-card-content-rounded': this.rounded === true,
'user-card-content-rounded-t': this.rounded === 'top', // top only
'user-card-content-bordered': this.bordered
'user-card-content-rt': this.rounded === 'top', // set border-top-left-radius and border-top-right-radius
'user-card-content-r': this.rounded === true, // set border-radius for all sides
'user-card-content-b': this.bordered === true // set border for all sides
}]
},
style () {
......
......@@ -164,19 +164,19 @@
//
// Modifiers
&-rounded {
border-radius: $fallback--panelRadius;
border-radius: var(--panelRadius, $fallback--panelRadius);
&-rt {
border-top-left-radius: $fallback--panelRadius;
border-top-left-radius: var(--panelRadius, $fallback--panelRadius);
border-top-right-radius: $fallback--panelRadius;
border-top-right-radius: var(--panelRadius, $fallback--panelRadius);
}
&-rounded-t {
&-r {
border-radius: $fallback--panelRadius;
border-radius: var(--panelRadius, $fallback--panelRadius);
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
&-bordered {
&-b {
border-width: 1px;
border-style: solid;
border-color: $fallback--border;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment