This commit is contained in:
syuilo
2018-12-30 14:00:57 +09:00
parent 12286f4915
commit 4f76acd249
30 changed files with 67 additions and 43 deletions

View File

@@ -151,7 +151,7 @@ export default Vue.extend({
font-weight bold
color var(--faceHeaderText)
background var(--faceHeader)
box-shadow 0 1px rgba(#000, 0.07)
box-shadow 0 var(--lineWidth) rgba(#000, 0.07)
> [data-icon]
margin-right 4px
@@ -199,11 +199,11 @@ export default Vue.extend({
color var(--calendarSaturdayOrSunday)
&[data-today]
box-shadow 0 0 0 1px var(--calendarWeek) inset
box-shadow 0 0 0 var(--lineWidth) var(--calendarWeek) inset
border-radius 6px
&[data-is-donichi]
box-shadow 0 0 0 1px var(--calendarSaturdayOrSunday) inset
box-shadow 0 0 0 var(--lineWidth) var(--calendarSaturdayOrSunday) inset
&.day
cursor pointer

View File

@@ -46,7 +46,7 @@ export default Vue.extend({
&.divider
margin-top $padding
padding-top $padding
border-top solid 1px var(--faceDivider)
border-top solid var(--lineWidth) var(--faceDivider)
&.nest
> p

View File

@@ -140,7 +140,7 @@ export default Vue.extend({
margin 0
padding 0
background var(--face)
border-bottom solid 1px var(--faceDivider)
border-bottom solid var(--lineWidth) var(--faceDivider)
&.mini
font-size 13px
@@ -261,7 +261,7 @@ export default Vue.extend({
> *
padding 16px
border dashed 1px var(--quoteBorder)
border dashed var(--lineWidth) var(--quoteBorder)
border-radius 8px
> footer

View File

@@ -209,7 +209,7 @@ export default Vue.extend({
text-align center
color var(--dateDividerFg)
background var(--dateDividerBg)
border-bottom solid 1px var(--faceDivider)
border-bottom solid var(--lineWidth) var(--faceDivider)
span
margin 0 16px
@@ -233,7 +233,7 @@ export default Vue.extend({
text-align center
color #ccc
background var(--face)
border-top solid 1px var(--faceDivider)
border-top solid var(--lineWidth) var(--faceDivider)
border-bottom-left-radius 6px
border-bottom-right-radius 6px

View File

@@ -248,7 +248,7 @@ export default Vue.extend({
padding 16px
overflow-wrap break-word
font-size 12px
border-bottom solid 1px var(--faceDivider)
border-bottom solid var(--lineWidth) var(--faceDivider)
&:last-child
border-bottom none
@@ -332,7 +332,7 @@ export default Vue.extend({
font-size 0.8em
color var(--dateDividerFg)
background var(--dateDividerBg)
border-bottom solid 1px var(--faceDivider)
border-bottom solid var(--lineWidth) var(--faceDivider)
span
margin 0 16px
@@ -345,7 +345,7 @@ export default Vue.extend({
width 100%
padding 16px
color var(--text)
border-top solid 1px rgba(#000, 0.05)
border-top solid var(--lineWidth) rgba(#000, 0.05)
&:hover
background rgba(#000, 0.025)

View File

@@ -97,6 +97,12 @@
<ui-switch v-model="useShadow">{{ $t('use-shadow') }}</ui-switch>
<ui-switch v-model="roundedCorners">{{ $t('rounded-corners') }}</ui-switch>
<ui-switch v-model="circleIcons">{{ $t('circle-icons') }}</ui-switch>
<section>
<header>{{ $t('line-width') }}</header>
<ui-radio v-model="lineWidth" :value="0.5">{{ $t('line-width-thin') }}</ui-radio>
<ui-radio v-model="lineWidth" :value="1">{{ $t('line-width-normal') }}</ui-radio>
<ui-radio v-model="lineWidth" :value="2">{{ $t('line-width-thick') }}</ui-radio>
</section>
<ui-switch v-model="reduceMotion">{{ $t('@.reduce-motion') }}</ui-switch>
<ui-switch v-model="contrastedAcct">{{ $t('contrasted-acct') }}</ui-switch>
<ui-switch v-model="showFullAcct">{{ $t('@.show-full-acct') }}</ui-switch>
@@ -405,6 +411,11 @@ export default Vue.extend({
set(value) { this.$store.dispatch('settings/set', { key: 'roundedCorners', value }); }
},
lineWidth: {
get() { return this.$store.state.settings.lineWidth; },
set(value) { this.$store.dispatch('settings/set', { key: 'lineWidth', value }); }
},
fetchOnScroll: {
get() { return this.$store.state.settings.fetchOnScroll; },
set(value) { this.$store.dispatch('settings/set', { key: 'fetchOnScroll', value }); }

View File

@@ -173,7 +173,7 @@ export default Vue.extend({
<style lang="stylus" scoped>
.mk-timeline-core
> .mk-friends-maker
border-bottom solid 1px #eee
border-bottom solid var(--lineWidth) #eee
</style>

View File

@@ -187,7 +187,7 @@ export default Vue.extend({
padding 0 8px
z-index 10
background var(--faceHeader)
box-shadow 0 1px var(--desktopTimelineHeaderShadow)
box-shadow 0 var(--lineWidth) var(--desktopTimelineHeaderShadow)
> .buttons
position absolute

View File

@@ -227,7 +227,7 @@ export default Vue.extend({
font-size 0.8em
background $bgcolor
border-radius 4px
box-shadow 0 1px 4px rgba(#000, 0.25)
box-shadow 0 var(--lineWidth) 4px rgba(#000, 0.25)
&:before
content ""
@@ -261,7 +261,7 @@ export default Vue.extend({
& + ul
padding-top 10px
border-top solid 1px var(--faceDivider)
border-top solid var(--lineWidth) var(--faceDivider)
> li
display block

View File

@@ -46,7 +46,7 @@ export default Vue.extend({
font-size 0.9em
font-weight bold
color var(--faceHeaderText)
box-shadow 0 1px rgba(#000, 0.07)
box-shadow 0 var(--lineWidth) rgba(#000, 0.07)
> [data-icon]
margin-right 6px