diff --git a/src/views/App.css b/src/views/App.css index a62d926..05773ce 100644 --- a/src/views/App.css +++ b/src/views/App.css @@ -3,29 +3,16 @@ line-height: 1.5; font-weight: 400; - color-scheme: light dark; - color: rgba(255, 255, 255, 0.87); - background-color: #242424; - font-synthesis: none; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -} -a { - font-weight: 500; - color: #646cff; - text-decoration: inherit; -} -a:hover { - color: #535bf2; + background-color: #EEE; } body { margin: 0; - min-width: 320px; - min-height: 90vh; } h1 { @@ -33,49 +20,55 @@ h1 { line-height: 1.1; } -#app { - max-width: 1280px; - margin: 0 auto; - padding: 2rem; - text-align: center; -} - button { - border-radius: 8px; - border: 1px solid transparent; - padding: 0.6em 1.2em; - font-size: 1em; - font-weight: 500; - font-family: inherit; - background-color: #1a1a1a; - cursor: pointer; - transition: border-color 0.25s; + padding: 0.5rem 1rem; } -button:hover { - border-color: #646cff; -} -button:focus, -button:focus-visible { - outline: 4px auto -webkit-focus-ring-color; + +.app-container { + margin: auto; + min-width: 320px; + max-width: 800px; } .container { - margin: auto; - width: 70%; + margin: 2rem; } -#login-host { +.login-host { margin-right: 1em; } -#post-container { +.account-header { + display: flex; + align-items: center; +} + +.account-header > * { + margin: 10px; +} + +.post-container { display: flex; align-items: flex-end; } -#post textarea { +.post-textarea { margin-right: 1em; height: 5rem; width: 15rem; } + +.note-block { + display: block; + margin-bottom: 0.5rem; + list-style: none; +} + +.note-header { + color: #22F; +} + +.timeline-list { + padding-inline-start: 0; +} diff --git a/src/views/App.tsx b/src/views/App.tsx index 13646c5..1254484 100644 --- a/src/views/App.tsx +++ b/src/views/App.tsx @@ -27,19 +27,21 @@ const App: FC = () => { }, []); return ( -
- setAccount(x) } - mode={ mode } - /> - { - account != null && - +
+ setAccount(x) } mode={ mode } /> - } + { + account != null && + + } +
); }; diff --git a/src/views/LoginForm.tsx b/src/views/LoginForm.tsx index 0f14d7f..e9cb2f4 100644 --- a/src/views/LoginForm.tsx +++ b/src/views/LoginForm.tsx @@ -41,10 +41,12 @@ const LoginForm: FC = (props) => { return ( <>

アカウント

-

ログイン先: { props.account.host }

- +
+

ログイン先: { props.account.host }

+ +
); } else { @@ -53,6 +55,7 @@ const LoginForm: FC = (props) => {

アカウント

setHostName(e.target.value) } diff --git a/src/views/PostForm.tsx b/src/views/PostForm.tsx index 3d8eb07..183874e 100644 --- a/src/views/PostForm.tsx +++ b/src/views/PostForm.tsx @@ -25,8 +25,8 @@ const PostForm: FC = (props) => { return ( <> -
-