summaryrefslogtreecommitdiff
path: root/src/client/app/common/views/components/ui
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-09-27 22:50:34 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-09-27 22:50:34 +0900
commit1e9eeeb980fc416efcda68b4020d65425c0e8e31 (patch)
treea970e7836e56aea008b7bc0ded16c7e963375a13 /src/client/app/common/views/components/ui
parentwip (diff)
downloadmisskey-1e9eeeb980fc416efcda68b4020d65425c0e8e31.tar.gz
misskey-1e9eeeb980fc416efcda68b4020d65425c0e8e31.tar.bz2
misskey-1e9eeeb980fc416efcda68b4020d65425c0e8e31.zip
wip
Diffstat (limited to 'src/client/app/common/views/components/ui')
-rw-r--r--src/client/app/common/views/components/ui/form/radio.vue2
-rw-r--r--src/client/app/common/views/components/ui/input.vue10
-rw-r--r--src/client/app/common/views/components/ui/radio.vue2
-rw-r--r--src/client/app/common/views/components/ui/select.vue4
-rw-r--r--src/client/app/common/views/components/ui/textarea.vue24
5 files changed, 17 insertions, 25 deletions
diff --git a/src/client/app/common/views/components/ui/form/radio.vue b/src/client/app/common/views/components/ui/form/radio.vue
index 13cabbdc04..5728a8171b 100644
--- a/src/client/app/common/views/components/ui/form/radio.vue
+++ b/src/client/app/common/views/components/ui/form/radio.vue
@@ -62,7 +62,7 @@ root(isDark)
&:hover
> .button
- border solid 2px isDark ? rgba(#fff, 0.7) : rgba(#000, 0.54)
+ border solid 2px var(--inputLabel)
&.disabled
opacity 0.6
diff --git a/src/client/app/common/views/components/ui/input.vue b/src/client/app/common/views/components/ui/input.vue
index 98c9bf7f5a..d7b83d81cd 100644
--- a/src/client/app/common/views/components/ui/input.vue
+++ b/src/client/app/common/views/components/ui/input.vue
@@ -167,7 +167,7 @@ root(isDark, fill)
width 24px
text-align center
line-height 32px
- color isDark ? rgba(#fff, 0.7) : rgba(#000, 0.54)
+ color var(--inputLabel)
&:not(:empty) + .input
margin-left 28px
@@ -183,7 +183,7 @@ root(isDark, fill)
left 0
right 0
height 1px
- background isDark ? rgba(#fff, 0.7) : rgba(#000, 0.42)
+ background var(--inputBorder)
&:after
content ''
@@ -242,7 +242,7 @@ root(isDark, fill)
transition-duration 0.3s
font-size 16px
line-height 32px
- color isDark ? rgba(#fff, 0.7) : rgba(#000, 0.54)
+ color var(--inputLabel)
pointer-events none
//will-change transform
transform-origin top left
@@ -257,7 +257,7 @@ root(isDark, fill)
font-weight fill ? bold : normal
font-size 16px
line-height 32px
- color isDark ? #fff : #000
+ color var(--inputText)
background transparent
border none
border-radius 0
@@ -280,7 +280,7 @@ root(isDark, fill)
top 0
font-size 16px
line-height fill ? 44px : 32px
- color isDark ? rgba(#fff, 0.7) : rgba(#000, 0.54)
+ color var(--inputLabel)
pointer-events none
&:empty
diff --git a/src/client/app/common/views/components/ui/radio.vue b/src/client/app/common/views/components/ui/radio.vue
index ded6b5650c..3a4407abc0 100644
--- a/src/client/app/common/views/components/ui/radio.vue
+++ b/src/client/app/common/views/components/ui/radio.vue
@@ -87,7 +87,7 @@ root(isDark)
width 20px
height 20px
background none
- border solid 2px isDark ? rgba(#fff, 0.7) : rgba(#000, 0.54)
+ border solid 2px var(--inputLabel)
border-radius 100%
transition inherit
diff --git a/src/client/app/common/views/components/ui/select.vue b/src/client/app/common/views/components/ui/select.vue
index c32865c690..bdb730fea9 100644
--- a/src/client/app/common/views/components/ui/select.vue
+++ b/src/client/app/common/views/components/ui/select.vue
@@ -103,7 +103,7 @@ root(isDark, fill)
left 0
right 0
height 1px
- background isDark ? rgba(#fff, 0.7) : rgba(#000, 0.42)
+ background var(--inputBorder)
&:after
content ''
@@ -143,7 +143,7 @@ root(isDark, fill)
font-weight fill ? bold : normal
font-size 16px
height 32px
- color isDark ? #fff : #000
+ color var(--inputText)
background transparent
border none
border-radius 0
diff --git a/src/client/app/common/views/components/ui/textarea.vue b/src/client/app/common/views/components/ui/textarea.vue
index 53b7dcaf8c..67898ee059 100644
--- a/src/client/app/common/views/components/ui/textarea.vue
+++ b/src/client/app/common/views/components/ui/textarea.vue
@@ -63,9 +63,7 @@ export default Vue.extend({
</script>
<style lang="stylus" scoped>
-
-
-root(isDark, fill)
+root(fill)
margin 42px 0 32px 0
> .input
@@ -84,7 +82,7 @@ root(isDark, fill)
left 0
right 0
background none
- border solid 1px isDark ? rgba(#fff, 0.7) : rgba(#000, 0.42)
+ border solid 1px var(--inputBorder)
border-radius 3px
pointer-events none
@@ -112,7 +110,7 @@ root(isDark, fill)
transition-duration 0.3s
font-size 16px
line-height 32px
- color isDark ? rgba(#fff, 0.7) : rgba(#000, 0.54)
+ color var(--inputLabel)
pointer-events none
//will-change transform
transform-origin top left
@@ -126,7 +124,7 @@ root(isDark, fill)
font inherit
font-weight fill ? bold : normal
font-size 16px
- color isDark ? #fff : #000
+ color var(--inputText)
background transparent
border none
border-radius 0
@@ -159,16 +157,10 @@ root(isDark, fill)
left 0 !important
transform scale(0.75)
-.ui-textarea[data-darkmode]
- &.fill
- root(true, true)
- &:not(.fill)
- root(true, false)
+.ui-textarea.fill
+ root(true)
-.ui-textarea:not([data-darkmode])
- &.fill
- root(false, true)
- &:not(.fill)
- root(false, false)
+.ui-textarea:not(.fill)
+ root(false)
</style>