Add support for tablet screens
This commit is contained in:
parent
cfdf6a6c9b
commit
4768cad8eb
2 changed files with 66 additions and 1 deletions
|
@ -46,7 +46,7 @@
|
||||||
|
|
||||||
<div class="middle-large">
|
<div class="middle-large">
|
||||||
|
|
||||||
<h1 class="title">เทคทรานส์ไทย</h1>
|
<h1>เทคทรานส์ไทย</h1>
|
||||||
|
|
||||||
<p>ชุมชนเทคโนโลยีสำหรับคนข้ามเพศและพันธมิตรในประเทศไทย เราให้ความสำคัญกับซอฟต์แวร์เสรี การกระจายศูนย์ ข้อมูลและมาตรฐานเปิด</p>
|
<p>ชุมชนเทคโนโลยีสำหรับคนข้ามเพศและพันธมิตรในประเทศไทย เราให้ความสำคัญกับซอฟต์แวร์เสรี การกระจายศูนย์ ข้อมูลและมาตรฐานเปิด</p>
|
||||||
|
|
||||||
|
|
65
style.css
65
style.css
|
@ -6,6 +6,13 @@ html *
|
||||||
font-family: Inter, Cantarell, sans-serif;
|
font-family: Inter, Cantarell, sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
font-size: 11pt;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
margin-top: 3vh;
|
||||||
|
}
|
||||||
.centerscreen {
|
.centerscreen {
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -148,6 +155,59 @@ html *
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.emojidecorations {
|
||||||
|
font-size: 16pt;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* For tablet screens */
|
||||||
|
@media only screen and (min-width: 750px) and (max-width: 1366px) {
|
||||||
|
.middle-large {
|
||||||
|
grid-area: middle;
|
||||||
|
width: 90vw;
|
||||||
|
max-width: 35cm;
|
||||||
|
}
|
||||||
|
.row {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
.itemcard {
|
||||||
|
display: grid;
|
||||||
|
border-radius: 12px;
|
||||||
|
text-decoration: none;
|
||||||
|
margin-bottom: 0.5cm;
|
||||||
|
height: 3cm;
|
||||||
|
min-width: 6cm;
|
||||||
|
width: 100%;
|
||||||
|
transition-duration: 0.2s;
|
||||||
|
box-shadow: 0px 1px 4px 1px rgba(0, 0, 0, 0.13);
|
||||||
|
}
|
||||||
|
.itemcard-placeholder {
|
||||||
|
display: grid;
|
||||||
|
border-radius: 12px;
|
||||||
|
text-decoration: none;
|
||||||
|
margin-bottom: 0.5cm;
|
||||||
|
min-height: 3cm;
|
||||||
|
min-width: 6cm;
|
||||||
|
width: 100%
|
||||||
|
}
|
||||||
|
|
||||||
|
.itemcard-stealth {
|
||||||
|
display: grid;
|
||||||
|
border-radius: 12px;
|
||||||
|
text-decoration: none;
|
||||||
|
margin-bottom: 0.5cm;
|
||||||
|
height: 3cm;
|
||||||
|
min-width: 6cm;
|
||||||
|
width: 100%;
|
||||||
|
transition-duration: 0.2s;
|
||||||
|
}
|
||||||
|
h1 {
|
||||||
|
margin-top: 3vh;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* For phone screens */
|
||||||
@media only screen and (max-width: 750px) {
|
@media only screen and (max-width: 750px) {
|
||||||
.middle-large {
|
.middle-large {
|
||||||
grid-area: middle;
|
grid-area: middle;
|
||||||
|
@ -189,8 +249,13 @@ html *
|
||||||
width: 100%;
|
width: 100%;
|
||||||
transition-duration: 0.2s;
|
transition-duration: 0.2s;
|
||||||
}
|
}
|
||||||
|
h1 {
|
||||||
|
margin-top: 8vh;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@media (prefers-color-scheme: light) {
|
@media (prefers-color-scheme: light) {
|
||||||
|
|
||||||
body {
|
body {
|
||||||
|
|
Loading…
Reference in a new issue