モバイル版のダークモード
など
This commit is contained in:
		| @@ -16,7 +16,9 @@ | ||||
| 			</div> | ||||
| 		</header> | ||||
| 		<div class="body"> | ||||
| 			<mk-note-html v-if="note.text" :text="note.text" :i="os.i" :class="$style.text"/> | ||||
| 			<div class="text"> | ||||
| 				<mk-note-html v-if="note.text" :text="note.text" :i="os.i"/> | ||||
| 			</div> | ||||
| 			<div class="media" v-if="note.mediaIds.length > 0"> | ||||
| 				<mk-media-list :media-list="note.media"/> | ||||
| 			</div> | ||||
| @@ -40,10 +42,10 @@ export default Vue.extend({ | ||||
| </script> | ||||
|  | ||||
| <style lang="stylus" scoped> | ||||
| .sub | ||||
| root(isDark) | ||||
| 	margin 0 | ||||
| 	padding 20px 32px | ||||
| 	background #fdfdfd | ||||
| 	background isDark ? #21242d : #fdfdfd | ||||
|  | ||||
| 	&:after | ||||
| 		content "" | ||||
| @@ -87,7 +89,7 @@ export default Vue.extend({ | ||||
| 					display inline | ||||
| 					margin 0 | ||||
| 					padding 0 | ||||
| 					color #777 | ||||
| 					color isDark ? #fff : #777 | ||||
| 					font-size 1em | ||||
| 					font-weight 700 | ||||
| 					text-align left | ||||
| @@ -99,24 +101,29 @@ export default Vue.extend({ | ||||
| 				> .username | ||||
| 					text-align left | ||||
| 					margin 0 0 0 8px | ||||
| 					color #ccc | ||||
| 					color isDark ? #606984 : #ccc | ||||
|  | ||||
| 			> .right | ||||
| 				float right | ||||
|  | ||||
| 				> .time | ||||
| 					font-size 0.9em | ||||
| 					color #c0c0c0 | ||||
| 					color isDark ? #606984 : #c0c0c0 | ||||
|  | ||||
| 		> .body | ||||
| 			> .text | ||||
| 				cursor default | ||||
| 				display block | ||||
| 				margin 0 | ||||
| 				padding 0 | ||||
| 				overflow-wrap break-word | ||||
| 				font-size 1em | ||||
| 				color isDark ? #959ba7 : #717171 | ||||
|  | ||||
| .sub[data-darkmode] | ||||
| 	root(true) | ||||
|  | ||||
| .sub:not([data-darkmode]) | ||||
| 	root(false) | ||||
|  | ||||
| </style> | ||||
|  | ||||
| <style lang="stylus" module> | ||||
| .text | ||||
| 	cursor default | ||||
| 	display block | ||||
| 	margin 0 | ||||
| 	padding 0 | ||||
| 	overflow-wrap break-word | ||||
| 	font-size 1em | ||||
| 	color #717171 | ||||
| </style> | ||||
|   | ||||
| @@ -38,7 +38,9 @@ | ||||
| 			</router-link> | ||||
| 		</header> | ||||
| 		<div class="body"> | ||||
| 			<mk-note-html :class="$style.text" v-if="p.text" :text="p.text" :i="os.i"/> | ||||
| 			<div class="text"> | ||||
| 				<mk-note-html v-if="p.text" :text="p.text" :i="os.i"/> | ||||
| 			</div> | ||||
| 			<div class="media" v-if="p.media.length > 0"> | ||||
| 				<mk-media-list :media-list="p.media"/> | ||||
| 			</div> | ||||
| @@ -214,12 +216,12 @@ export default Vue.extend({ | ||||
| <style lang="stylus" scoped> | ||||
| @import '~const.styl' | ||||
|  | ||||
| .mk-note-detail | ||||
| root(isDark) | ||||
| 	margin 0 | ||||
| 	padding 0 | ||||
| 	overflow hidden | ||||
| 	text-align left | ||||
| 	background #fff | ||||
| 	background isDark ? #282C37 : #fff | ||||
| 	border solid 1px rgba(0, 0, 0, 0.1) | ||||
| 	border-radius 8px | ||||
|  | ||||
| @@ -232,10 +234,10 @@ export default Vue.extend({ | ||||
| 		text-align center | ||||
| 		color #999 | ||||
| 		cursor pointer | ||||
| 		background #fafafa | ||||
| 		background isDark ? #21242d : #fafafa | ||||
| 		outline none | ||||
| 		border none | ||||
| 		border-bottom solid 1px #eef0f2 | ||||
| 		border-bottom solid 1px isDark ? #1c2023 : #eef0f2 | ||||
| 		border-radius 6px 6px 0 0 | ||||
|  | ||||
| 		&:hover | ||||
| @@ -249,11 +251,11 @@ export default Vue.extend({ | ||||
|  | ||||
| 	> .context | ||||
| 		> * | ||||
| 			border-bottom 1px solid #eef0f2 | ||||
| 			border-bottom 1px solid isDark ? #1c2023 : #eef0f2 | ||||
|  | ||||
| 	> .renote | ||||
| 		color #9dbb00 | ||||
| 		background linear-gradient(to bottom, #edfde2 0%, #fff 100%) | ||||
| 		background isDark ? linear-gradient(to bottom, #314027 0%, #282c37 100%) : linear-gradient(to bottom, #edfde2 0%, #fff 100%) | ||||
|  | ||||
| 		> p | ||||
| 			margin 0 | ||||
| @@ -281,7 +283,7 @@ export default Vue.extend({ | ||||
| 			padding-top 8px | ||||
|  | ||||
| 	> .reply-to | ||||
| 		border-bottom 1px solid #eef0f2 | ||||
| 		border-bottom 1px solid isDark ? #1c2023 : #eef0f2 | ||||
|  | ||||
| 	> article | ||||
| 		padding 28px 32px 18px 32px | ||||
| @@ -318,7 +320,7 @@ export default Vue.extend({ | ||||
| 				display inline-block | ||||
| 				margin 0 | ||||
| 				line-height 24px | ||||
| 				color #777 | ||||
| 				color isDark ? #fff : #627079 | ||||
| 				font-size 18px | ||||
| 				font-weight 700 | ||||
| 				text-align left | ||||
| @@ -331,7 +333,7 @@ export default Vue.extend({ | ||||
| 				display block | ||||
| 				text-align left | ||||
| 				margin 0 | ||||
| 				color #ccc | ||||
| 				color isDark ? #606984 : #ccc | ||||
|  | ||||
| 			> .time | ||||
| 				position absolute | ||||
| @@ -343,6 +345,15 @@ export default Vue.extend({ | ||||
| 		> .body | ||||
| 			padding 8px 0 | ||||
|  | ||||
| 			> .text | ||||
| 				cursor default | ||||
| 				display block | ||||
| 				margin 0 | ||||
| 				padding 0 | ||||
| 				overflow-wrap break-word | ||||
| 				font-size 1.5em | ||||
| 				color isDark ? #fff : #717171 | ||||
|  | ||||
| 			> .renote | ||||
| 				margin 8px 0 | ||||
|  | ||||
| @@ -420,17 +431,12 @@ export default Vue.extend({ | ||||
|  | ||||
| 	> .replies | ||||
| 		> * | ||||
| 			border-top 1px solid #eef0f2 | ||||
| 			border-top 1px solid isDark ? #1c2023 : #eef0f2 | ||||
|  | ||||
| .mk-note-detail[data-darkmode] | ||||
| 	root(true) | ||||
|  | ||||
| .mk-note-detail:not([data-darkmode]) | ||||
| 	root(false) | ||||
|  | ||||
| </style> | ||||
|  | ||||
| <style lang="stylus" module> | ||||
| .text | ||||
| 	cursor default | ||||
| 	display block | ||||
| 	margin 0 | ||||
| 	padding 0 | ||||
| 	overflow-wrap break-word | ||||
| 	font-size 1.5em | ||||
| 	color #717171 | ||||
| </style> | ||||
|   | ||||
| @@ -434,7 +434,7 @@ root(isDark) | ||||
| 					margin 0 .5em 0 0 | ||||
| 					padding 1px 6px | ||||
| 					font-size 12px | ||||
| 					color isDark ? #758188 :#aaa | ||||
| 					color isDark ? #758188 : #aaa | ||||
| 					border solid 1px isDark ? #57616f : #ddd | ||||
| 					border-radius 3px | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 syuilo
					syuilo