added media query at 480px (for font-size)

This commit is contained in:
unknown 2022-12-22 18:17:32 +07:00
parent 0ff32cda19
commit 9871c4f9f8
2 changed files with 7 additions and 1 deletions

View file

@ -119,4 +119,10 @@ button {
color: var(--button-hover-color);
background: var(--button-hover-backround);
}
}
@media (max-width: 30rem) { /* 480px */
html {
font-size: calc(1rem - 10%);
}
}

View file

@ -1 +1 @@
body,h2{margin-top:0}.__body textarea,.__title input{border:var(--border-shorthand);outline:0;width:100%}:root{--font-size-main:0.906rem;--font-size-second:0.688rem;--color-main:rgba(0, 0, 0, 0.8);--border-main:rgba(0, 0, 0, 0.6);--border-shorthand:0.063rem solid rgba(0, 0, 0, 0.6);--button-hover-backround:rgba(0, 0, 0, 0.8);--button-hover-color:rgba(255, 255, 255, 0.9);--font-size-button:0.769rem;--unit-one:0.438rem;--unit-two:0.75rem}*{color:var(--color-main);box-sizing:border-box}body{height:100vh;margin-bottom:0;font-size:var(--font-size-main)}.__body textarea,.__title input,button{padding:var(--unit-one) var(--unit-two);font-size:var(--font-size-button)}main{height:calc(100% - 9vh);padding:var(--unit-two)}#simple-note{display:flex;flex-direction:column;align-items:center;height:100%;max-width:32rem;margin:4.5vh auto}.__title{width:100%}.__title input{border-bottom:0;border-radius:.188rem .188rem 0 0;font-style:italic;font-weight:700}.__body{height:100%;width:100%}.__body textarea{border-bottom:none;border-radius:0;height:100%;resize:none;overflow-y:scroll}.__function{display:flex;border:var(--border-shorthand);width:100%}button{background:0 0;border:none;min-width:20%;cursor:pointer}.__function button:not(:last-child){border-right:var(--border-shorthand)}._delete-all,._delete-confirm{color:#fff;background:#fd5e5e}._delete-confirm{display:none}._save-to-local{border-left:var(--border-shorthand)!important;margin-left:auto}@media (hover:hover){.__function button:hover{color:var(--button-hover-color);background:var(--button-hover-backround)}}
body,h2{margin-top:0}.__body textarea,.__title input{border:var(--border-shorthand);outline:0;width:100%}:root{--font-size-main:0.906rem;--font-size-second:0.688rem;--color-main:rgba(0, 0, 0, 0.8);--border-main:rgba(0, 0, 0, 0.6);--border-shorthand:0.063rem solid rgba(0, 0, 0, 0.6);--button-hover-backround:rgba(0, 0, 0, 0.8);--button-hover-color:rgba(255, 255, 255, 0.9);--font-size-button:0.769rem;--unit-one:0.438rem;--unit-two:0.75rem}*{color:var(--color-main);box-sizing:border-box}body{height:100vh;margin-bottom:0;font-size:var(--font-size-main)}.__body textarea,.__title input,button{padding:var(--unit-one) var(--unit-two);font-size:var(--font-size-button)}main{height:calc(100% - 9vh);padding:var(--unit-two)}#simple-note{display:flex;flex-direction:column;align-items:center;height:100%;max-width:32rem;margin:4.5vh auto}.__title{width:100%}.__title input{border-bottom:0;border-radius:.188rem .188rem 0 0;font-style:italic;font-weight:700}.__body{height:100%;width:100%}.__body textarea{border-bottom:none;border-radius:0;height:100%;resize:none;overflow-y:scroll}.__function{display:flex;border:var(--border-shorthand);width:100%}button{background:0 0;border:none;min-width:20%;cursor:pointer}.__function button:not(:last-child){border-right:var(--border-shorthand)}._delete-all,._delete-confirm{color:#fff;background:#fd5e5e}._delete-confirm{display:none}._save-to-local{border-left:var(--border-shorthand)!important;margin-left:auto}@media (hover:hover){.__function button:hover{color:var(--button-hover-color);background:var(--button-hover-backround)}}@media (max-width:30rem){html{font-size:calc(1rem - 10%)}}