| Server IP : 122.155.17.190 / Your IP : 216.73.216.182 Web Server : Apache/2 System : Linux cat17190.thaihostserver.com 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64 User : t1bnc ( 1042) PHP Version : 5.6.40 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/t1bnc/domains/t1bnc.ac.th/public_html/css01/ |
Upload File : |
:root {
--main-color: hsl(232, 47%, 56%);
--main-color-accent: hsl(230, 58%, 30%);
--text-color: hsl(208, 13%, 45%);
--text-color-accent: hsl(235, 26%, 35%);
--background-color: hsl(220, 38%, 97%);
--line-color: hsl(249, 20%, 86%);
--max-width: 60rem;
--min-width: 45rem;
}
*, *::before, *::after {
box-sizing: border-box;
}
body {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
margin: 0 auto;
min-width: var(--min-width);
max-width: var(--max-width);
min-height: 100vh;
color: var(--text-color);
background-color: var(--background-color);
font-family: Helvetica, Arial, sans-serif;
& > p {
margin: 1em 2em;
text-align: center;
}
}
[mv-app] {
min-width: var(--min-width);
max-width: 90vw;
background-color: white;
border-radius: 0.5em;
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
0 10px 10px -5px rgba(0, 0, 0, 0.04),
0 35px 2px -20px hsl(240, 20%, 92%);
}
[mv-app] > [property="headline"] {
margin: 0;
padding: 1.1em 1em;
text-align: center;
color: var(--text-color-accent);
border-bottom: 1px solid var(--line-color);
}
.tabs {
display: grid;
grid-template-columns: repeat(var(--count, 5), minmax(8em, 1fr));
grid-template-rows: auto auto;
}
details[property="tab"] {
display: contents;
&[open] {
[property="content"] {
grid-column: 1 / -1;
width: auto;
}
}
&:not([open]) {
[property="title"] {
color: hsl(232, 16%, 61%);
background-color: hsl(210, 29%, 97%);
border-bottom: 1px solid var(--line-color);
.icon {
filter: grayscale(85%) opacity(45%);
}
}
[property="content"] {
display: none;
}
}
&:first-child {
[property="title"] {
border-left: none;
}
}
}
[property="title"] {
grid-row: 1;
padding: 1em;
display: flex;
flex-direction: column;
align-items: center;
border-left: 1px solid var(--line-color);
color: var(--main-color);
text-align: center;
list-style: none;
&::-webkit-details-marker {
display: none;
}
.icon {
max-height: 5em;
margin-left: auto;
margin-right: auto;
margin-bottom: 1em;
}
&:focus {
outline: none;
}
}
[property="content"] {
grid-row: 2;
padding: 3em 1em;
display: grid;
grid-template-columns: 1.5fr 2fr;
grid-column-gap: 1.2em;
grid-template-areas:
"image headline"
"image text"
"image link";
[property="image"] {
grid-area: image;
max-width: 70%;
max-height: 22em;
margin: auto;
}
[property="headline"] {
grid-area: headline;
margin-bottom: 0.5em;
color: var(--main-color);
&:not([mv-mode="edit"]) {
background-clip: text;
-webkit-text-fill-color: transparent;
background-image: linear-gradient(
to right,
var(--main-color),
var(--main-color-accent)
);
}
font-size: 170%;
}
[property="text"] {
grid-area: text;
line-height: 1.5em;
}
[property="url"] {
grid-area: link;
align-self: center;
display: block;
width: max-content;
margin-top: 1.5em;
padding: 0.7em 2em;
color: white;
background-image: linear-gradient(
135deg,
var(--main-color),
var(--main-color-accent)
);
border-radius: 999px;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
0 2px 4px -1px rgba(0, 0, 0, 0.06);
font-size: 0.8em;
text-decoration: none;
text-transform: uppercase;
letter-spacing: 0.05em;
&:hover {
filter: brightness(135%);
}
}
}
[mv-app][mv-mode="edit"] [property="open"] {
display: none;
}
footer {
margin-top: 3em;
text-align: center;
a {
color: var(--main-color);
}
}
::-moz-focus-inner {
border: 0;
}