mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-03-25 09:05:47 +00:00
131 lines
2.8 KiB
CSS
131 lines
2.8 KiB
CSS
/* phones and iPad */
|
|
|
|
@media only screen and (orientation: portrait) and (min-device-width: 768px) and (max-device-width: 1024px),
|
|
only screen and (min-device-width: 320px) and (max-device-width: 480px),
|
|
only screen and (max-device-width: 800px)
|
|
{
|
|
ul.nav { padding: 0.5em
|
|
; width: 60%
|
|
; max-width: 600px
|
|
}
|
|
|
|
ul.nav li { display: block
|
|
; font-size: 1.5em
|
|
; line-height: 1.8em
|
|
}
|
|
|
|
ul.nav li:after { content: '' }
|
|
}
|
|
|
|
/* phones */
|
|
@media only screen and (min-device-width: 320px) and (max-device-width: 480px),
|
|
handheld and (max-device-width: 800px)
|
|
{
|
|
/* common */
|
|
|
|
h1 { font-size: 2em
|
|
; margin-top: 1em
|
|
}
|
|
h2 { font-size: 1.3em }
|
|
|
|
#blog h1 { margin-top: 0 }
|
|
|
|
#breadcrumbs { font-size: 0.8em }
|
|
|
|
#show-posts { margin-top: 1em
|
|
; font-size: 0.8em
|
|
}
|
|
|
|
#forkme { display: none }
|
|
|
|
ul.nav li { font-size: 1.4em
|
|
; line-height: 1.6em
|
|
}
|
|
|
|
td { font-size: 1em
|
|
; line-height: 1.1em
|
|
}
|
|
|
|
footer { font-size: 1em }
|
|
|
|
#blog img { max-width: 100% }
|
|
|
|
#index { width: 90%
|
|
; min-width: 200px
|
|
; margin: 0.3em auto 1em
|
|
; padding: 0.5em
|
|
; font-size: 1em
|
|
}
|
|
|
|
#index li > span.date { display: none }
|
|
|
|
#blog #article h1,
|
|
#blog article h1 { font-size: 1.6em
|
|
; margin-top: 0
|
|
}
|
|
|
|
#article,
|
|
article { min-width: 310px
|
|
; margin: 0
|
|
; padding: 1em 0.4em
|
|
; font-size: 0.8em
|
|
}
|
|
|
|
.time,
|
|
time { font-size: 1.1em }
|
|
|
|
pre, .gist { font-size: 0.8em }
|
|
|
|
#comment-stuff { padding: 0
|
|
; margin-top: 2em
|
|
}
|
|
|
|
#comments { width: 100% }
|
|
|
|
#comment-form { width: 90%
|
|
; margin: 0 auto
|
|
}
|
|
|
|
input[type=text],
|
|
textarea { font-size: 1.2em
|
|
; width: 95%
|
|
}
|
|
|
|
input[type=submit] { font-size: 1em }
|
|
|
|
/* proj */
|
|
#info { width: 70%
|
|
; padding: 0 1em
|
|
}
|
|
|
|
#info > div { clear: left
|
|
; width: 100%
|
|
; max-width: 100%
|
|
; padding: 0.5em 0.2em 1em
|
|
; border-left: none
|
|
; font-size: 1em
|
|
}
|
|
|
|
#stats { font-size: 1em }
|
|
|
|
footer { margin: 0
|
|
; padding: 0.5em 0
|
|
}
|
|
|
|
}
|
|
|
|
/* landscape */
|
|
|
|
@media only screen and (orientation: landscape) and (min-device-width: 768px) and (max-device-width: 1024px),
|
|
only screen and (orientation: landscape) and (min-device-width: 320px) and (max-device-width: 480px),
|
|
handheld and (orientation: landscape) and (max-device-width: 800px)
|
|
{
|
|
body { font-size: 0.7em }
|
|
}
|
|
|
|
|
|
/* iPad portrait */
|
|
@media only screen and (orientation: portrait) and (min-device-width: 768px) and (max-device-width: 1024px)
|
|
{
|
|
article > header > h1 { font-size: 1.8em }
|
|
}
|