aboutsummaryrefslogtreecommitdiff
path: root/src/components/style_switcher/style_switcher.vue
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2018-04-08 03:22:03 +0300
committerHenry Jameson <me@hjkos.com>2018-04-08 03:22:03 +0300
commitcc02672e1451f28bcb85a0b34d34117567cc0802 (patch)
tree79701c3ade6376edfce0bbee62e8e9e8823d83a9 /src/components/style_switcher/style_switcher.vue
parent2e95193559b51d81a3e6de6f29ec277a842556cc (diff)
made alerts use red with transparent theme red. some UI improvs
Diffstat (limited to 'src/components/style_switcher/style_switcher.vue')
-rw-r--r--src/components/style_switcher/style_switcher.vue36
1 files changed, 28 insertions, 8 deletions
diff --git a/src/components/style_switcher/style_switcher.vue b/src/components/style_switcher/style_switcher.vue
index cfc2d83d..ef4a21bd 100644
--- a/src/components/style_switcher/style_switcher.vue
+++ b/src/components/style_switcher/style_switcher.vue
@@ -92,20 +92,23 @@
'--tooltipRadius': tooltipRadiusLocal + 'px',
'--attachmentRadius': attachmentRadiusLocal + 'px'
}">
- <div class="panel">
+ <div class="panel dummy">
<div class="panel-heading" :style="{ 'background-color': btnColorLocal, 'color': textColorLocal }">Preview</div>
<div class="panel-body theme-preview-content" :style="{ 'background-color': bgColorLocal, 'color': textColorLocal }">
+ <div class="avatar" :style="{
+ 'border-radius': avatarRadiusLocal + 'px'
+ }">
+ ( ͡° ͜ʖ ͡°)
+ </div>
<h4>Content</h4>
<br>
A bunch of more content and
- <a :style="{ 'color': linkColorLocal }">a nice lil' link</a>
- <i :style="{ 'color': blueColorLocal }" class="icon-reply"/>
- <i :style="{ 'color': greenColorLocal }" class="icon-retweet"/>
- <i :style="{ 'color': redColorLocal }" class="icon-cancel"/>
- <i :style="{ 'color': orangeColorLocal }" class="icon-star"/>
+ <a :style="{ color: linkColorLocal }">a nice lil' link</a>
+ <i :style="{ color: blueColorLocal }" class="icon-reply"/>
+ <i :style="{ color: greenColorLocal }" class="icon-retweet"/>
+ <i :style="{ color: redColorLocal }" class="icon-cancel"/>
+ <i :style="{ color: orangeColorLocal }" class="icon-star"/>
<br>
- <br>
- <div class="finder-error" :style="{ 'background-color': redColorLocal }">And a scary alert</div>
<button class="btn" :style="{ 'background-color': btnColorLocal, 'color': textColorLocal }">Button</button>
</div>
</div>
@@ -153,6 +156,10 @@
}
}
+.radius-item {
+ flex-basis: auto;
+}
+
.theme-radius-rn,
.theme-color-cl {
border: 0;
@@ -209,4 +216,17 @@
.theme-preview-content {
padding: 20px;
}
+
+.dummy {
+ .avatar {
+ background: linear-gradient(135deg, #b8e1fc 0%,#a9d2f3 10%,#90bae4 25%,#90bcea 37%,#90bff0 50%,#6ba8e5 51%,#a2daf5 83%,#bdf3fd 100%);
+ color: black;
+ text-align: center;
+ height: 48px;
+ line-height: 48px;
+ width: 48px;
+ float: left;
+ margin-right: 1em;
+ }
+}
</style>