กำลังโหลด
Math
E-Book
Release 2.7pre2
+ Conc!
หน้าแรก
ดาวน์โหลด
*เรียนเลขพี่นวย
*สมาชิกพรีเมียม
โอเน็ตสนทนา
เว็บบอร์ด
ผลงาน/ผู้เขียน
>>
แก้ไข style.css
รายละเอียด* :
/******** ส่วนที่ 0 เรียกใช้ฟอนต์ **********/ @font-face { font-family: 'Display'; font-style: normal; font-weight: normal; src: url(Prompt-Regular-web.woff2) format('woff2'), url(Prompt-Regular-web.ttf) format('truetype'); /* Prompt 400 */ } @font-face { font-family: 'Display'; font-style: normal; font-weight: bold; src: url(Prompt-SemiBold-web.woff2) format('woff2'), url(Prompt-SemiBold-web.ttf) format('truetype'); /* Prompt 600 */ } @font-face { font-family: 'Text'; font-style: normal; font-weight: normal; src: url(CSPraKas-web.woff2) format('woff2'), url(CSPraKas-web.ttf) format('truetype'); } @font-face { font-family: 'Text'; font-style: normal; font-weight: 500; src: url(Prompt-Medium-web.woff2) format('woff2'), url(Prompt-Medium-web.ttf) format('truetype'); /* Prompt 500 */ } @font-face { font-family: 'Text'; font-style: normal; font-weight: bold; src: url(Prompt-SemiBold-web.woff2) format('woff2'), url(Prompt-SemiBold-web.ttf) format('truetype'); /* Prompt 600 */ } @font-face { font-family: 'TextNotSoBold'; font-style: normal; font-weight: bold; src: url(CSPraKas-Bold-web.woff2) format('woff2'), url(CSPraKas-Bold-web.ttf) format('truetype'); } @font-face { font-family: 'Tahoma'; font-style: normal; font-weight: bold; src: url(Tahoma-subset-web.woff2) format('woff2'), url(Tahoma-subset-web.ttf) format('truetype'); } /* NOTE : ตรวจสอบความจำเป็นที่ต้องเติม vendor prefix ณ ปัจจุบัน ได้ที่เว็บ autoprefixer.github.io */ /******** ส่วนที่ 1 รายละเอียดของ html tag ทั่วไป **********/ /* :root { รอทำ CSS Variables หลังจากเช็คสถิติ % เบราเซอร์ผู้ใช้เว็บปัจจุบัน 1. Google Analytics เว็บตัวเอง, 2. ดูข้อมูลที่ CanIUse, 3. ทดสอบที่ BrowserStack } */ html { scroll-behavior: smooth; /* ไม่รองรับใน Safari <15.4 จึงใช้ smoothscroll-polyfill มาช่วย อนาคตถ้าเลิกใช้ polyfill อาจทำให้การสกรอลดีขึ้น-ไม่ต้องคอยหน่วงเวลา */ -webkit-text-size-adjust: 100%; text-size-adjust: 100% } /* ป้องกัน mobile browser ขยายฟอนต์เอง ตอนตะแคงจอ */ * { margin: 0; padding: 0; transition-timing-function: linear } @supports (-moz-appearance:none) { * { scrollbar-color: #7AD transparent } } /* Firefox, Chrome 121+ .. เขียนดัก apply to Firefox only เพราะ Chrome ยังไม่สวย ใช้แบบเดิมก่อน */ ::-webkit-scrollbar { width: 8px; height: 8px } /* Chrome, Edge, Safari */ /* NOTE: Chrome 121+ ยึดค่ามาตรฐาน scrollbar- เป็นหลัก ถ้าไม่พบจึง fallback กลับมาค่านี้ */ ::-webkit-scrollbar-track { background: transparent } /* Safari ไม่รองรับ transparent เดี๋ยวมีแก้ไขด้านล่าง */ ::-webkit-scrollbar-thumb { background-color: #7AD; border: 3px solid rgba(0, 0, 0, 0); background-clip: padding-box; border-radius: 4px } ::-webkit-scrollbar:hover { width: 11px; height: 11px } /* ปรับขนาด scrollbar ขณะ hover (เลียนแบบ Firefox) พบว่าได้ผลเฉพาะ chrome/edge ส่วน safari เน่า แก้ไขด้านล่าง */ ::-webkit-scrollbar-thumb:hover { background-color: #58B; border-radius: 5.5px } body { overflow-y: overlay } /* chrome scrollbar overlay - สกรอลบาร์ไม่กินที่ เว็บไม่ขยับ // firefox ไม่รู้จัก ห้ามนำไปใช้ในจุดอื่น // safari รู้จัก แต่ตีไปเป็น auto ทำให้เว็บขยับ chrome 114+ ไม่รองรับวิธีนี้แล้ว */ body.lockscroll { touch-action: none; /*safari 13+*/ overscroll-behavior: contain; /*safari 16+*/ overflow: hidden } /* ใช้เมื่อเปิด modal, จำเป็นต้องทำ chrome scrollbar overlay ก่อน เพื่อไม่ให้คอนเทนต์ขยับ, ทดสอบใน safari ios15 แนวนอนใช้การได้ แนวตั้งยังประหลาดๆ */ body { font: normal 14.5px/1.45 Text, sans-serif; color: #222; margin: 0 auto; transition: color .2s, background .2s; background: #FFF } @supports (not (-moz-appearance:button)) and (contain:paint) and (-webkit-appearance:none) { /* apply to Chrome, Edge only (ดูเหมือนส่งผล Safari mac ด้วย จึงเอาไว้บน) */ body { padding-left: calc(100vw - 100%) } /* ลบกันได้ความกว้างของ scrollbar ป้องกันเว็บขยับตอนสกรอลบาร์หาย */ } @supports (background: -webkit-named-image(i)) and (not (-webkit-touch-callout: none)) { /* apply to Safari mac only (not ios) */ body { padding-left: calc(100vw - 100%) } /* ลบกันได้ความกว้างของ scrollbar ป้องกันเว็บขยับตอนสกรอลบาร์หาย */ ::-webkit-scrollbar-track { background-color: #FFF } /* แก้ขัดที่ไม่รองรับ transparent กลายเป็นพื้นน้ำเงิน */ @media (min-width: 959px) { ::-webkit-scrollbar-track { background-color: #CCC } } ::-webkit-scrollbar, ::-webkit-scrollbar:hover { width: 11px; height: 11px } /* แก้ไขอาการเน่า เมื่อปรับขนาด scrollbar ขณะ hover โดยการ fix ขนาด */ ::-webkit-scrollbar-thumb, ::-webkit-scrollbar-thumb:hover { border-radius: 5.5px } } @supports (-webkit-touch-callout: none) { /* apply to Safari ios only (not mac) */ body { background: #237FBE } /* สีแถบบนล่างใน Safari iOS15+ (แต่จะส่งผลให้ scrollbar-thumb ถูกบังคับเป็นสีขาว) */ } /* NOTE: @supports (background: -webkit-named-image(i)) = safari all (mac & ios) // @supports (-webkit-touch-callout: none) = safari ios only */ @media (min-width: 666px) { body { font: normal 16.2px/1.45 Text, sans-serif; } } @media (min-width: 959px) { body { background: #CCC; width: 960px } } .MJX_LiveRegion, .MJX_HoverRegion, .MJX_ToolTip { background-color: transparent !important } /* fix MathJax 4.0a1 white block */ img { border: none } .float-right { margin: 5px 0 4px 10px } /*img*/ .float-left { margin: 5px 10px 4px 0 } /*img*/ a.scroll30 { display: block; height: 0; position: relative; top: -30px } /* scrollintoview offset */ a.scroll50 { display: block; height: 0; position: relative; top: -50px } /* scrollintoview offset */ a, a:link, a:visited { color: #08C; font-weight: 500; text-decoration: none } a:hover { color: #0AA; text-decoration: underline } a:focus { outline: none } a.framelink, a.framelink:link, a.framelink:visited { display: inline-block; vertical-align: middle; color: #555; transition: color .2s, border .2s, background .2s; border: 1px solid #E1E1E1; border-radius: 0.35em; width: 30%; max-width: 121px; height: 4.4em; margin: 3px 1px 4px 5px; -webkit-user-select: none; user-select: none; background: #F4F4F4 url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'31'%20height%3D'11'%3E%3Crect%20rx%3D'3'%20ry%3D'3'%20width%3D'28'%20height%3D'8'%20fill%3D'%23eec82b'%2F%3E%3C%2Fsvg%3E") bottom right no-repeat } /* MHP เหลือง */ .mhpyellow svg { fill: #eec82b } a.framelink:hover:not(.inactive) { margin: 2px 2px 5px 4px } a.framelink:hover { text-decoration: none; cursor: pointer; border-color: #BBB; box-shadow: 1px 1px #BBB } @media (min-width: 430px) { a.framelink { width: 23.5% } } @media (min-width: 410px) { .class a.framelink, .class a.framelink:link, .class a.framelink:visited { margin: 3.4px 1.2px 4.6px 5.8px; } .class a.framelink:hover:not(.inactive) { margin: 2.2px 2.4px 5.8px 4.6px } .class a.framelink:hover { box-shadow: 1.16px 1.16px #BBB } } /*new size*/ .class a.framelink { width: 35px; height: 33px; background: #F4F4F4; border-radius: 6px } .class .longer a.framelink { width: 39.5px } .class .longest a.framelink { width: 44px } @media (min-width: 410px) { .class a.framelink { width: 40px; height: 38px; border-radius: 7px; font-size: 1.1em !important } .class .longer a.framelink { width: 46px } .class .longest a.framelink { width: 51px } } /*new size*/ @media (min-width: 666px) { .class a.framelink { font-size: 1em !important } } .class .bigintro a.framelink { width: 21.8%; height: 7.5vw; min-height: 31px; max-height: 34px; margin: 0.7% } @media (max-width: 359px) { .class .bigintro a.framelink { width: 21.4%; font-size: 0.87em !important } } @media (min-width: 410px) { .class .bigintro a.framelink { min-height: 36px; max-height: 39.5px } .class .bigintro a.framelink:hover { margin: 0.7% } } /*new size*/ a.inactive, a.inactive:hover { opacity: 0.5; border: 1px dashed #CCC; box-shadow: none } a.halfactive, a.halfactive:hover { opacity: 0.9; background-color: #FCFCFC !important; border: 1px dashed #CCC } a.inactive:hover, a.halfactive:hover { border-color: #AAA } a.red { background: #F4F4F4 url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'31'%20height%3D'11'%3E%3Crect%20rx%3D'3'%20ry%3D'3'%20width%3D'28'%20height%3D'8'%20fill%3D'%23f86d6d'%2F%3E%3C%2Fsvg%3E") bottom right no-repeat } /* จะเปลี่ยนเป็น svg inline เพื่อให้เปลี่ยนสีได้ง่ายๆ (แบบบรรทัดล่าง) */ .mhpred svg { fill: #f86d6d } a.blue { background: #F4F4F4 url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'31'%20height%3D'11'%3E%3Crect%20rx%3D'3'%20ry%3D'3'%20width%3D'28'%20height%3D'8'%20fill%3D'%23557ef6'%2F%3E%3C%2Fsvg%3E") bottom right no-repeat } .mhpblue svg { fill: #557ef6 } a.green { background: #F4F4F4 url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'31'%20height%3D'11'%3E%3Crect%20rx%3D'3'%20ry%3D'3'%20width%3D'28'%20height%3D'8'%20fill%3D'%2339c680'%2F%3E%3C%2Fsvg%3E") bottom right no-repeat } .mhpgreen svg { fill: #39c680 } .solbutton a.framelink { background: #F4F4F4 url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'31'%20height%3D'11'%3E%3Crect%20rx%3D'3'%20ry%3D'3'%20width%3D'28'%20height%3D'8'%20fill%3D'%2339c680'%2F%3E%3C%2Fsvg%3E") bottom right no-repeat } .solbutton a.inactive, .solbutton a.inactive:hover { opacity: 0.45; border: 1px dashed #CCC; box-shadow: none } .class a.green.inactive, .class a.pink.inactive, .class a.orange.inactive, .class a.blue.inactive, .class a.yellow.inactive { opacity: 0.6; border-style: dotted; z-index: 1 } .class a.green { border: 2px solid #5cd6b8; background: #eafaf6 } .class a.green:hover { border-color: #0C9; box-shadow: 1px 1px #5cd6b8 } .class a.pink { border: 2px solid #ec93a9; background: #fceef2 } .class a.pink:hover { border-color: #F89; box-shadow: 1px 1px #ec93a9 } .class a.orange { border: 2px solid #f6a655; background: #fef2e7 } .class a.orange:hover { border-color: #F93; box-shadow: 1px 1px #f6a655 } .class a.blue { border: 2px solid #67bbe4; background: #eaf5fb } .class a.blue:hover { border-color: #3BF; box-shadow: 1px 1px #67bbe4 } .class a.yellow { border: 2px solid #e8da7d; background: #fbf9e9 } /* ยังไม่ได้ใช้ */ .class a.grey { border: 2px solid #B7B7B7; background: #F2F2F2 } .class a.grey:hover { border-color: #A6A6A6; box-shadow: 1px 1px #B7B7B7 } .class a.hhgreen, .class a.hhpink, .class a.hhorange, .class a.hhblue, .class a.hhgrey { opacity: 1; width: 16.5px !important; height: 17.5px; margin-left: 8px; border-radius: 0.25em; border: none; position: relative; top: -2px } @media (min-width: 666px) { .class a.hhgreen, .class a.hhpink, .class a.hhorange, .class a.hhblue, .class a.hhgrey { top: -1px } } .class a.hhgreen:hover, .class a.hhpink:hover, .class a.hhorange:hover, .class a.hhblue:hover, .class a.hhgrey:hover { box-shadow: none; margin: 2px 2px 5px 7px } .class a.hhgreen.inactive, .class a.hhpink.inactive, .class a.hhorange.inactive, .class a.hhblue.inactive, .class a.hhgrey.inactive { opacity: 0.6; border-style: dotted } .class a.hhgreen { border: 2px solid #33cca6; background: #eafaf6 } .class a.hhpink { border: 2px solid #ec93a9; background: #fceef2 } .class a.hhorange { border: 2px solid #f2a65a; background: #fef2e7 } .class a.hhblue { border: 2px solid #5ebeed; background: #eaf5fb } .class a.hhgrey { border: 2px solid #CCC; background: #EEE } @media (min-width: 410px) { .class a.green, .class a.pink, .class a.orange, .class a.blue, .class a.yellow, .class a.grey { border-width: 2.35px } .class a.hhgreen, .class a.hhpink, .class a.hhorange, .class a.hhblue, .class a.hhgrey { width: 19px !important; height: 20.5px; margin-left: 9.2px; border-width: 2.35px } .class a.hhgreen:hover, .class a.hhpink:hover, .class a.hhorange:hover, .class a.hhblue:hover, .class a.hhgrey:hover { margin: 2.2px 2.4px 5.8px 8px } .class a.hhgreen:hover:not(.inactive), .class a.hhpink:hover:not(.inactive), .class a.hhorange:hover:not(.inactive) { margin: 2.2px 2.4px 5.8px 8px } } /*new size*/ .class a.glow, .class a.glow:hover { filter: saturate(107%); box-shadow: 0 0 7px 0 #FFD700 } a.framelink p { margin: 0; padding: 6.75px 0; text-align: center; height: 100% } .class .lessonblock a.framelink p { padding: 8.5px 0 } /* เดิม ตอนยังไม่ขยายขนาด @media (min-width: 666px) { .class .lessonblock a.framelink p { padding: 7px 0 } } */ @media (min-width: 410px) { .class a.framelink p, .class .lessonblock a.framelink p { padding: 9.9px 0 } } /*new size - อันแรกสำหรับปุ่มเลือกคลิปแถมใน modal*/ abbr { text-decoration: none } /*firefox, opera*/ .badgein { display: block; position: relative; left: -0.6em; top: -1.9em; width: 0.8em; height: 0.8em; border-radius: 0.4em; background: #F44; animation: blinker 1.5s linear infinite } @keyframes blinker { 50% { opacity: 0.3 } } .class .badgein { top: -0.95em } .class .badgehh { width: 0.6em; height: 0.6em; border-radius: 0.3em; left: -0.4em; top: -0.5em } .inactive { opacity: 0.4 } /*badgein */ .note1 { background: #FD5; } .note2 { background: #7E5; } /*badgein */ .badgeout { display: inline-block; width: 0 } @media (min-width: 410px) { .class .badgein { width: 0.92em; height: 0.92em; border-radius: 0.46em; left: -0.7em; top: -1.1em } .class .badgehh { width: 0.7em; height: 0.7em; border-radius: 0.35em; left: -0.46em; top: -0.58em } } /*new size*/ p { padding: 8px; margin: 0; transition: all 0s } .br0 { display: block; height: 0.5em } /* span ใช้แทน br ที่แคบกว่า narrower */ /* NOTE: ใช้ hr, div ไม่ได้ จะโดนปิดแท็ก p โดยอัตโนมัติ กระเทือนการจัดหน้า */ .br1 { display: block; height: 0.8em } /* span ใช้แทน br narrower */ .br2 { display: block; height: 1.1em } /* span ใช้แทน br wider */ /* ถ้าต้องการกว้างกว่านี้ จะกลายเป็น br br */ h1, h2, h3, h4 { padding: 0; margin: 0; color: #0AA } h1 { font: bold 1.25em Display, sans-serif; letter-spacing: 0.05em; margin: 0 0 5px; padding: 0 0 0 27px; text-shadow: #DDD 1px 1px 1px; border-bottom: 1px solid #EEE; transition: all 0s, border .2s, text-shadow .2s, background .2s; background: transparent url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'16'%20height%3D'16'%3E%3Crect%20width%3D'12'%20height%3D'12'%20x%3D'3'%20y%3D'3'%20fill%3D'%23E7E7E7'%20rx%3D'2'%20ry%3D'2'%2F%3E%3Crect%20width%3D'12'%20height%3D'12'%20x%3D'2'%20y%3D'2'%20fill%3D'%2398D661'%20rx%3D'2'%20ry%3D'2'%2F%3E%3C%2Fsvg%3E") no-repeat 3px 7px } h2 { font-size: 1.2em; font-weight: bold; padding: 8px; border-bottom: 1px solid #EEE; transition: all 0s, border .2s } h3 { font-size: 1.125em; font-weight: bold; line-height: 1.0; display: inline; transition: all 0s } h4 { font-size: 1.0em; font-weight: bold; display: inline; transition: all 0s } h4.ora { color: #E83 } h4.pink { color: #E6A } @media (min-width: 410px) { h4.ora, h4.gre, h4.pink { font-size: 1.13em } } /*new size*/ small { font-family: TextNotSoBold, sans-serif; font-weight: bold; font-size: 0.9em } strong { font-family: TextNotSoBold, sans-serif; font-weight: bold } .class .lessonblock { display: block; margin: 0 auto 18px; padding: 5px 2.5%; max-width: 500px; /*เดิม430*/ min-height: 160px; border-radius: 0.5em; border-top: 1px solid #EEE; animation: fadeIn ease .6s } /* fadeIn สำหรับการซ่อนแล้วแสดงกลับคืน, fadeOut เรียกด้วย JS */ @media (min-width: 410px) { .class .lessonblock { margin-bottom: 21px; padding: 5.8px 2.5%; min-height: 185px; border-radius: 0.58em } } /*new size*/ .class .bigintro { min-height: 0 } .class .lessonblock h2 { padding: 4px 8px; color: #237FBE; border-bottom: 1px solid #E5E5E5; height: 1.6em; transition: border .2s } .class .lessonblock h2 .modal { font-size: 0.835em; font-weight: normal; color: #333 } /*คูณใน hh modal ที่โดน 1.2em จาก h2 ไปด้วย ให้กลับเป็น 1em*/ @media (min-width: 410px) { .class .lessonblock h2 { font-size: 1.38em; padding: 4.6px 9.3px } .class .lessonblock h2 .modal { font-size: 0.725em } /*คูณใน hh modal ให้กลับเป็น 1em*/ } /*new size*/ .class .lessonblock .lessonname { display: inline-block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: calc(100% - 110px) } .class .lessonblock .shorter { width: calc(100% - 148px) } .class .lessonblock .shortest { width: calc(100% - 178px) } @media (min-width: 410px) { .class .lessonblock .lessonname { width: calc(100% - 127.5px) } .class .lessonblock .shorter { width: calc(100% - 171.7px) } .class .lessonblock .shortest { width: calc(100% - 206.5px) } } /*new size*/ @media (min-width: 359px) { .br359 { display: none } } @media (max-width: 359px) { .sp359 { display: none } .lessonblock h2 { margin-bottom: -8px } } @media (min-width: 410px) { .sp359 { font-size: 1.13em } } /*new size*/ .class .lessonblock { background: #FFF no-repeat right top; background-size: 100% auto; transition: border .2s, background .2s } .class #showp0 { background-image: url(../../index-class-16.png) } .class #showp1 { background-image: url(../../index-class-01.png) } .class #showp2 { background-image: url(../../index-class-02.png) } .class #showp3 { background-image: url(../../index-class-03.png) } .class #showp4 { background-image: url(../../index-class-04.png) } .class #showp5 { background-image: url(../../index-class-05.png) } .class #showp6 { background-image: url(../../index-class-06.png) } .class #showp7 { background-image: url(../../index-class-07.png) } .class #showp8 { background-image: url(../../index-class-08.png) } .class #showp9 { background-image: url(../../index-class-09.png) } .class #showp10 { background-image: url(../../index-class-10.png) } .class #showp11 { background-image: url(../../index-class-11.png) } .class #showp12 { background-image: url(../../index-class-12.png) } .class #showp13 { background-image: url(../../index-class-13.png) } .class #showp14 { background-image: url(../../index-class-14.png) } .class #showp15 { background-image: url(../../index-class-15.png) } .class #showp16 { background-image: url(../../index-class-00.png) } .classimgmap { display: inline-block; cursor: pointer; z-index: 10; width: 38.5%; margin: -365px 0.4% 0; position: relative; height: 57vw; max-height: 365px; border-radius: 15px } .classimgmap:hover { box-shadow: 0 0 6px 6px white inset; background: linear-gradient(greenyellow, transparent); opacity: 0.12 } .matheq { margin: 0; padding: 0 } .matheqi { margin: 3px } .matheq:hover, .matheqi:hover { cursor: help } .MathJax_Preview { background: #F4F4F4; color: #0AA !important } .svg8 { width: 8px; height: 8px } .svg8x15 { width: 15px; height: 8px } /* premium */ .svg8x30 { width: 30px; height: 8px } /* premium */ .svg10 { width: 10px; height: 10px } /* premium */ .svg12 { width: 12px; height: 12px; margin: 0 2px } /* class */ .svg12half { width: 6px; height: 12px; margin: 0 2px } /* class */ .svg14 { width: 14px; height: 14px; margin: 0 2px 0 0; position: relative; top: 2px } /* class+premium */ .svg16w { width: 16px; height: 16px; margin: 0 1px 0 2px; position: relative; top: 4px } /* class+premium */ .svg16 { width: 16px; height: 16px; position: relative; top: 3px } .svg16color { fill: #7dbc45; width: 16px; height: 16px; position: relative; top: 2px } .svg16grey { fill: #888; width: 16px; height: 16px; position: relative; top: 3px } .svg16white { fill: #FFF; width: 16px; height: 16px; position: relative; top: 3px } /* class */ .svg18 { width: 18px; height: 18px; position: relative; top: 4px } /* class */ ul, ol { margin: 5px 10px; padding: 0 10px } @media (min-width: 959px) { ul, ol { margin: 5px 20px; padding: 0 20px } } code, .fakecode { padding: 0 0.2em; display: inline; border: 1px solid #CCC; border-radius: 0.33em; transition: border .2s, background .2s; font-family: TextNotSoBold, sans-serif; font-size: 14.5px; background: #F4F4F4; outline: none } .fakecode { padding: 0 0.5em } /* class */ code.premium { display: inline-block; margin: 0.15em 0 } code.token, code.mempay, code.fblink { display: inline-block; margin: 0.15em 0; cursor: pointer } /* premium */ code.token:hover, code.mempay:hover, code.fblink:hover { border-color: #0AA; background-color: #C8EEEE } /* premium */ .nodec { margin: 0; padding:0; border: 0; background: transparent; font-family: Text, sans-serif; font-size: 1em } /*code*/ blockquote { margin: 10px 10px 20px; padding: 0; border: 1px solid #F4F4F4; color: #222; border-radius: 0.5em; transition: border .2s, color .2s, background .2s; background: #F4F4F4 url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'6'%20height%3D'6'%3E%3Cpath%20fill%3D'%23fff'%20d%3D'M1.5%200h3L0%204.5v-3zM1.5%206h3L6%204.5v-3z'%2F%3E%3C%2Fsvg%3E") repeat } blockquote p { padding: 12px 15px 15px 32px; transition: background .2s; background: transparent url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'32'%20height%3D'32'%3E%3Cpath%20fill%3D'silver'%20d%3D'M14.4%201.2c-4.2%203.2-8.2%207.3-11%2012.3-1.1%201.8-1.8%204-2.1%206.1-.2%202-.4%204.3.7%206.1.6%201.1%201.8%201.9%203%202.3a5%205%200%200%200%203.8-.3c1.1-.6%201.9-1.7%202.3-2.9.4-1.4.1-3-.3-4.4-.4-1.6-2.1-3.1-2.2-4.3-.1-1.3%201.1-3.9%202.1-5.6%201.4-2.3%203-3.5%205.3-6zM28.6%201.2a45.3%2045.3%200%200%200-11.1%2012.3c-1.1%201.8-1.8%204-2%206.1-.2%202-.4%204.3.6%206.1.6%201.1%201.8%201.9%203%202.3a5%205%200%200%200%203.8-.3c1.1-.6%201.9-1.7%202.3-2.9.4-1.4.1-3-.3-4.4-.4-1.6-2.1-3.1-2.2-4.3-.1-1.3%201.1-3.9%202.1-5.6%201.4-2.3%203-3.5%205.3-6z'%2F%3E%3C%2Fsvg%3E") no-repeat 5px -5px } @media (min-width: 959px) { blockquote p { padding: 12px 15px 15px 40px } } blockquote.hist { padding: 5px 5px 5px 10px; border-color: #8CC; overflow-x: auto; scrollbar-width: none } /* Firefox */ blockquote.hist::-webkit-scrollbar { display: none } /* Safari, Chrome, Edge */ blockquote.hist h3 { background: #0AA; color: #FFF; font: 500 1.1em Text, sans-serif; transition: color .2s; padding: 1px 7px; margin-left: 12px; border-radius: 5px } blockquote.hist p { padding: 0 0 0 30px; text-indent: -12px; background: none } blockquote.hist p::before { content: "• " } .histcontainer { min-width: 526px } blockquote.thankyou1, blockquote.thankyou2 { padding: 12px; border-color: #8CC } blockquote.thankyou2 { line-height: 1.74em } blockquote.announce { font-family: TextNotSoBold, sans-serif; font-size: 0.95em; width: 95%; max-width: 500px; margin-left: auto; margin-right: auto; padding: 0 2.5%; color: #666; border-color: #8CC; transition: color .2s, border .2s } /* width และ padding เท่ากับ lessonblock */ blockquote.announce p.noquote { background: none; padding: 12px } blockquote.announce .announcedel { display: inline-block; cursor: pointer; position: relative; float: right } .uplgrid { display: grid; grid-template-columns: auto auto auto auto auto; justify-content: space-evenly; align-content: center; margin-top: 5px } /* premium */ .uplgrid small { color: #888 } .uplgrid svg { top: -0.5px } .class .msghiding { overflow: hidden; margin-top: 0; margin-bottom: 0; opacity: 0 } /* ต้องไว้หลัง announce */ .class .lessonhiding, .class .lessonhiding blockquote, .class .lessonhiding h1, .class .lessonhiding span { /* ต้องไว้หลัง showp, blockquote.announce, span.br1 */ overflow: hidden; min-height: auto; margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; border: 0; opacity: 0 } .class .lessonhiding blockquote, .class .lessonhiding h1, .class .lessonhiding span { height: 0 } /* max-height ยังไม่เพียงพอ */ table { width: 100%; text-align: center; border-collapse: collapse; border: 0; margin: 0; padding: 0 } table tr, th { margin: 0; padding: 0; border: 0 } table th { background: #0AA url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'670'%20height%3D'40'%3E%3Cdefs%3E%3ClinearGradient%20id%3D'a'%20x2%3D'0'%20y2%3D'100%25'%3E%3Cstop%20offset%3D'0'%20stop-color%3D'%2309BEBB'%2F%3E%3Cstop%20offset%3D'100%25'%20stop-color%3D'%230AD6D6'%2F%3E%3C%2FlinearGradient%3E%3Cpattern%20id%3D'b'%20width%3D'4'%20height%3D'4'%20patternUnits%3D'userSpaceOnUse'%3E%3Cpath%20d%3D'M0%204V3l3-3h1zm3%200h1V3z'%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Cpath%20fill%3D'url(%23a)'%20d%3D'M0%200h670v40H0z'%2F%3E%3Cpath%20fill%3D'url(%23b)'%20fill-opacity%3D'.15'%20d%3D'M0%200h670v40H0z'%2F%3E%3C%2Fsvg%3E") repeat-x 0 0; color: #FFF; text-align: center; border: 1px solid #CCC; height: 23px; font: 500 1em Text, sans-serif } table td { background-color: #F4F4F4; padding: 0; color: #222; margin: 0; border: 1px solid #CCC; height: 20px } .display-table { display: table; margin: auto; margin-bottom: 10px; margin-top: -5px } /* ใช้ใน premium แสดงรายชื่อคลิป และใน fblogin */ .display-table > div { display: table-row } .display-table > div > div { display: table-cell; padding: 0 4px } .sort { font-size: 0.875em; text-align: left } .sort .right { text-align: right } .sort strong { color: #222 } .sort th.canclick { cursor: pointer } .sort tr:nth-child(even) td { background-color: #FFF } .sort tr.R1 td { background-color: #ffece5 } .sort tr.R2 td { background-color: #e5ffff } .sort tr.R3 td { background-color: #e5ffe5 } .sort tr.R4 td { background-color: #f5f5f5 } .sort tr.R5 td { background-color: #e8e8fc } .sort tr.R6 td { background-color: #ffe5f2 } .sort tr.R7 td { background-color: #fcfce6 } .sort tr.R8 td { background-color: #F5F5F5 } .sort tr.R0 td { background-color: #FFF } .sort td { padding: 0 5px } .sort td.date { min-width: 70px } .sort svg { float: left; padding: 4px 5px 0 0 } @media (max-width: 520px) { .canhide { display: none } } .sty1 { background-color: #FFF } /*table td*/ .sty3 { background-color: #FDF4EB; color: #D66 } /*table td*/ .alileft { text-align: left; padding: 8px } /*table td*/ .mhpchart { margin: auto } .mhpshowcol, .mhphidecol { border: none; height: 18px; line-height: 18px } @media (max-width: 666px) { .mhpchart { max-width: 420px } .mhphidecol { display: none } } .tablehistouter { overflow-x: auto; scrollbar-width: none } /* Firefox */ .tablehistouter::-webkit-scrollbar { display: none } /* Safari, Chrome, Edge */ .tablehistouter .tablehistinner { min-width: 580px; overflow: hidden } /* ไม่ให้รูป popup ถ่างพื้นที่ทางขวา แต่ก็จะแสดงรูปไม่เต็ม */ form { font-size: 1.0em; padding: 0; margin: 0; background: transparent } textarea { display: inline-block; padding: 3px; margin-bottom: 2px; width: calc(97% - 110px); height: 14.5em; font: normal 1em Text, sans-serif; color: #999; border: 1px solid #CCC; border-radius: 0.27em } input { padding: 0 3px; margin: 0 5px; border: 1px solid #CCC; border-radius: 0.27em; height: 1.5em; width: auto; font: normal 1em Text, sans-serif; color: #999; background-color: #FFF } ::placeholder { color: #888; opacity: 0.5 } /* Firefox ถ้าไม่เซตจะเป็น 0.4, Safari, Chrome, Edge ถ้าไม่เซตจะเป็น 1.0 */ input[type=file] { height: 1.65em } input[type=file]::file-selector-button { margin: .05em .5em .05em .1em; border: 1px solid #CCC; border-radius: 0.2em; background-color: #EEE; font: 500 0.85em Text, sans-serif; color: #888 } input[type=file]::file-selector-button:hover { cursor: pointer; border: 1px solid #19A; color: #2180BC } input[type=file]::-webkit-file-upload-button { margin: .05em .5em .05em .1em; border: 1px solid #CCC; border-radius: 0.2em; background-color: #EEE; font: 500 0.85em Text, sans-serif; color: #888 } /* fallback Chrome/Edge 88-, Safari 14.0- */ input[type=file]::-webkit-file-upload-button:hover { cursor: pointer; border: 1px solid #19A; color: #2180BC } input[type=number] { text-align: right; min-width: 45px; max-width: 62px; } /* min เพื่อ safari, max เพื่อ firefox+chrome */ input[type=checkbox] { height: auto; width: auto; vertical-align: top; /* บรรทัดนี้เพื่อ Safari */ transition: box-shadow .2s; background: lightgrey } input:checked { box-shadow: inset 0 0 0 20px blue } select { border: 1px solid #CCC; border-radius: 0.3em; background-color: #EEE; padding: 0 0 0 3px; margin: 0.15em 0 } textarea:hover, input:hover, select:hover, textarea:focus, input:focus, select:focus, .fakecode:focus { border: 1px solid #19A; color: #2180BC; outline: none } textarea, input, select, textarea:hover, input:hover, select:hover { transition: color .2s, border .2s, background .2s } input[type=file]::file-selector-button, input[type=file]::file-selector-button:hover { transition: color .2s, border .2s, background .2s } input[type=file]::-webkit-file-upload-button, input[type=file]::-webkit-file-upload-button:hover { transition: color .2s, border .2s, background .2s } #classnote { width: 98.8%; height: 83px; font: normal 1.1em TextNotSoBold, sans-serif; border-style: dashed } textarea.classnotedisable { background: #F2F2F2 } .courseselect { overflow-x: auto; scrollbar-width: none } /* Firefox */ .courseselect::-webkit-scrollbar { display: none } /* Safari, Chrome, Edge */ .courseselect table, .courseselect th, .courseselect td { border: 0; border-collapse: separate; -webkit-user-select: none; user-select: none } .courseselect table { border-spacing: 2px } .courseselect th, .courseselect td { background-color: #DDD; color: #FFF; text-align: center; padding: 3px 7px; min-width: 16px; border-radius: 4px; transition: all .3s } .courseselect th { background: none; background-color: #4CC; cursor: pointer; font: 500 1em Text, sans-serif } .courseselect th.blankbg { background-color:#EEE; color:#0AA; cursor: auto; min-width: 0; width: 2%; transition: background .2s } .courseselect th.LB { min-width: 44px; width: 44px } .courseselect th.LZ { min-width: 65px; width: 65px } .courseselect th.L0 { min-width: 130px; width: 130px } .courseselect #VV { background: transparent; padding: 0; cursor: auto; width: auto; min-width: 85px } .courseselect td { font-size: 0.5em } .courseselect input[type=checkbox] { display: none } .courseselect input { text-transform: uppercase; min-width: 58px; width: 30%; height: 26px; text-align: center; float: left; margin-left: -3px; font-size: 0.9em } @media (max-width: 400px) { .courseselect .coursecanhide { display: none } .courseselect th.L0 { min-width: 100px; width: 100px } } .fbloginbuttonunderlay { border: 1px solid #EEE; width: 220px; height: 40px; color: #C50; line-height: 2.6 } .loginnotice { border: 1px solid #DDD; background-color: #F6F6F6; margin: 12px 10px } .loginnotice.countdown { background-color: #EEE } .loginnotice h4.errortext { color: #F66 } button, a.buttonlink { margin: 0 5px; font: 500 0.93em Text, sans-serif; color: #FFF; transition: color .2s, border .2s, background .2s; border: 1px solid #47d1d1; border-radius: 6px; -webkit-user-select: none; user-select: none; background: #0AA url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'670'%20height%3D'40'%3E%3Cdefs%3E%3ClinearGradient%20id%3D'a'%20x2%3D'0'%20y2%3D'100%25'%3E%3Cstop%20offset%3D'0'%20stop-color%3D'%2309BEBB'%2F%3E%3Cstop%20offset%3D'100%25'%20stop-color%3D'%230AD6D6'%2F%3E%3C%2FlinearGradient%3E%3Cpattern%20id%3D'b'%20width%3D'4'%20height%3D'4'%20patternUnits%3D'userSpaceOnUse'%3E%3Cpath%20d%3D'M0%204V3l3-3h1zm3%200h1V3z'%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Cpath%20fill%3D'url(%23a)'%20d%3D'M0%200h670v40H0z'%2F%3E%3Cpath%20fill%3D'url(%23b)'%20fill-opacity%3D'.15'%20d%3D'M0%200h670v40H0z'%2F%3E%3C%2Fsvg%3E") repeat-x 0 0 } button { padding: 0; height: 1.75em; width: 7.3em } a.buttonlink { display: block; text-align: center; height: 1.62em; width: 7.1em } /* ปุ่มพวกนี้มีการตั้งฟอนต์ใน #main และสีสันใน .modal ด้วย*/ button:focus, a.buttonlink:focus { border: 1px solid #19A; outline: none } button:hover:enabled, a.buttonlink:hover { border: 1px solid #19A; cursor: pointer } button:disabled, button[disabled] { background: #BEE; border: 1px solid #ADD } input.arng { height: 1.6em; width: 2.9em; margin: 0 1px; font-size: 0.92em } input.arng:active, button:active, a.buttonlink:active { position: relative; top: 1px } a.buttonlink.historysign { position: relative; top: 7px } a.buttonlink.historysign:active { top: 8px } /* ปุ่มเปิดไฟล์ย้อนหลังใน premium */ a.buttonlink:hover { text-decoration: none; cursor: pointer } a.buttonlink.inactive { color: #47d1d1; border: 1px solid #47d1d1; background: #FFF } a.buttonlink.inactive:hover { color: #AAA; border: 1px solid #AAA; cursor: default } .timelink { display: inline-block; padding: 1px 5px; margin: 3px 1px; border-radius: 6px; border: 1px solid #6BB; background-color: #98d661 } .vidlink { display: inline-block; padding: 1px 5px; margin: 3px 1px; border-radius: 6px; border: 1px solid #47d1d1; background: #0AA url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'670'%20height%3D'40'%3E%3Cdefs%3E%3ClinearGradient%20id%3D'a'%20x2%3D'0'%20y2%3D'100%25'%3E%3Cstop%20offset%3D'0'%20stop-color%3D'%2309BEBB'%2F%3E%3Cstop%20offset%3D'100%25'%20stop-color%3D'%230AD6D6'%2F%3E%3C%2FlinearGradient%3E%3Cpattern%20id%3D'b'%20width%3D'4'%20height%3D'4'%20patternUnits%3D'userSpaceOnUse'%3E%3Cpath%20d%3D'M0%204V3l3-3h1zm3%200h1V3z'%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Cpath%20fill%3D'url(%23a)'%20d%3D'M0%200h670v40H0z'%2F%3E%3Cpath%20fill%3D'url(%23b)'%20fill-opacity%3D'.15'%20d%3D'M0%200h670v40H0z'%2F%3E%3C%2Fsvg%3E") repeat-x 0 0 } .timelink a, .timelink a:hover, .vidlink a, .vidlink a:hover { color: white; text-decoration: none; font-family: TextNotSoBold } .svgplaysign, .svghistorysign { fill: #FFF; transition: fill .2s } #bulb1, #bulb2 { padding-top: 5px } object { margin: 6px 3px } #mhpvframe { border-top: 2px dashed #CCC } #mhpvlinkbox { height: auto; border-bottom: 2px dashed #CCC; margin-bottom: 25px } .noteframe { background: #FFF; position: relative } #classnotebutton { float: right; position: absolute; top: 61px; right: 5px; margin-right: 0; width: 6em } #classnotebutton, #classnotechoose { font: normal 0.95em Display, sans-serif } .noteframeupperrow { float: right; position: absolute; top: 5px; right: 5px } #classnotechoose, #classnotedarkswitch, #mhpdarkswitch, #classnotevidswitch, #mhpvidswitch { float: right; margin-right: 0; width: 6em } #classnotedarkswitch, #mhpdarkswitch { width: 1.8em; padding: 3px 0 1px 2px } #classnotevidswitch, #mhpvidswitch { width: 1.8em; padding: 2px 1px } @media (max-width: 959px) { #mhpvidswitch { display: none } } @media (max-width: 400px) { .darkswitchoutside { display: none } } .videowrap { display: block; position: relative; margin: 0; padding: 0 0 56.25%; transition: background .2s } /*อนาคตจะใช้ aspect-ratio: 16/9 แทน 56.25*/ .videowrap #videotext { display: none } .videowrap iframe { position: absolute; top: 0; left: 0; height: 100%; transition: background .2s } /* premium/class/onet */ .videowrap #vfr { background-image: url(../../index-class68.jpg); background-size: cover } /* class/premium (โดยที่ premium ใช้ JS เขียนชื่อไฟล์ทับ) */ .videowrap.modalvid { display: flex; width: 100%; height: 100%; position: fixed; left: 0; top: 0; padding: 0; z-index: 520; background-color: rgba(0,8,18,0.6); -webkit-backdrop-filter: blur(2.5px); backdrop-filter: blur(2.5px); animation: fadeInUp .2s } .videowrap.modalvid #videotext { display: block; position: fixed; right: calc(3% + 20px); top: 5%; float: right; z-index: 530; font-weight: bold; color: #08C; -webkit-user-select: none; user-select: none; transition: color .2s } .videowrap.modalvid #videotext:hover { text-decoration: none; cursor: pointer; color: #2AE } .videowrap.modalvid iframe { flex-grow: 1; max-width: 94%; max-height: 94%; position: fixed; left: 3%; top: 3% } .videowrap.modalvid #vfr { background-size: contain; background-repeat: no-repeat; background-position: center center } .onetwrap { display: block; position: relative; height: 0; margin: 0 -13px 0 -37px; padding: 0 0 70% } .onetwrap iframe { position: absolute; top: 0; left: 0; height: 100% } .answersheet { column-count: 2; column-gap: 2px } @media (min-width: 510px) { .answersheet { column-count: 3 } } #wrap { margin: 0 auto; text-align: left; background-color: white; transition: background .2s } @media (min-width: 959px) { #wrap { width: 980px; max-width: 980px; background: #FFF url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'980'%20height%3D'1'%3E%3Cpath%20fill%3D'%23237fbe'%20d%3D'M0%200h980v1H0z'%2F%3E%3Cpath%20fill%3D'%23fff'%20d%3D'M5%200h970v1H5z'%2F%3E%3Cpath%20fill%3D'%23ceed92'%20d%3D'M739%200h231v1H739z'%2F%3E%3Cpath%20fill%3D'%23edfdce'%20d%3D'M740%200h229v1H740z'%2F%3E%3Cpath%20fill%3D'%23f9f9f9'%20d%3D'M735%200h1v1h-1z'%2F%3E%3Cpath%20fill%3D'%23ededed'%20d%3D'M736%200h1v1h-1z'%2F%3E%3Cpath%20fill%3D'%23dadada'%20d%3D'M737%200h1v1h-1z'%2F%3E%3Cpath%20fill%3D'%23ccc'%20d%3D'M738%200h1v1h-1z'%2F%3E%3C%2Fsvg%3E") repeat-y center top } } #content-wrap { clear: both; padding: 0; margin: 10px auto } @media (min-width: 959px) { #content-wrap { width: 950px } } /******** ส่วนที่ 2 ส่วนหัวและเมนูด้านบน **********/ #headerbg { height: 106px; transition: background .2s, background-position 0s; background: #CCC url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'980'%20height%3D'106'%3E%3Cdefs%3E%3ClinearGradient%20id%3D'a'%20x2%3D'0'%20y2%3D'55%25'%3E%3Cstop%20offset%3D'0'%20stop-color%3D'hsl(205,58%25,58%25)'%2F%3E%3Cstop%20offset%3D'100%25'%20stop-color%3D'hsl(205,65%25,47%25)'%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D'980'%20height%3D'90'%20fill%3D'url(%23a)'%20rx%3D'16'%20ry%3D'16'%2F%3E%3Cpath%20fill%3D'%23237fbe'%20d%3D'M0%2061h980v45H0z'%2F%3E%3C%2Fsvg%3E") no-repeat center center } #header { margin: auto; color: #FFF; max-width: 664px } @media (min-width: 959px) { #headerbg { height: 125px; background-position: center bottom } #header { position: relative; width: 980px; max-width: 980px } } #logo-text { position: relative; top: 25px; left: 15px; margin: 0; padding: 0; color: #FFF; font: bold 50px Tahoma; letter-spacing: -1px } @media (min-width: 959px) { #logo-text { position: absolute; top: 44px; left: 42px } } #logo-text2 { color: #98d661 } #slogan { position: relative; top: 18px; left: 17px; margin: 0; padding: 0; color: #71C0FC; font: bold 20px Tahoma } @media (min-width: 959px) { #slogan { position: absolute; top: 89px; left: 44px } } #slogan2 { font-size: 0.9em } #logo-text, #logo-text2, #slogan { transition: color .2s } @media (max-width: 400px) { #headerbg { height: 26.5vw } #logo-text { font-size: 12.5vw; top: 6.25vw } #slogan { font-size: 5vw; top: 4.5vw } } /* ปรับสเกลตามจอมือถือขนาดเล็ก */ @media (max-width: 360px) { #headerbg { height: 95px } #logo-text { font-size: 45px; top: 23px } #slogan { font-size: 18px; top: 16px } } /* minimum size */ #header-links { float: right; position: relative; top: 10px; right: 30px; height: 0; color: #C6DDEE; font-size: 0.9em } @media (max-width: 959px) { #header-links { top: 10px; right: 15px } } @media (max-width: 666px) { #header-links { visibility: hidden } } #header-links a:link, #header #header-links a:visited { color: #FFF; text-decoration: none } #header-links a:hover { color: #D4E59F } #header-links b { font-weight: 500 } #header-links #rss { width: 16px; height: 16px; position: relative; top: 4px; margin: 0 0 0 5px } #header-links #rss:hover { fill: #D4E59F } #menubg { margin: 0 auto; padding: 0; height: 41px; font-family: Display, sans-serif; line-height: 41px; position: -webkit-sticky; position: sticky; top: -1px; z-index: 100; /* -webkit- จำเป็นสำหรับ Safari 6-12 // IE ไม่รองรับ */ transition: background .2s, top .3s; /* ใช้ใน js auto-hide มือถือตะแคง */ background: transparent url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'1'%20height%3D'41'%3E%3Cpath%20fill%3D'%23237fbe'%20d%3D'M0%200h1v41H0z'%2F%3E%3Cpath%20fill%3D'%23156aab'%20d%3D'M0%204h1v1H0zM0%2035h1v1H0z'%2F%3E%3Cpath%20fill%3D'%234fa2e4'%20d%3D'M0%205h1v1H0zM0%2036h1v1H0z'%2F%3E%3C%2Fsvg%3E") repeat-x 0 0 } #menu { margin: auto; max-width: 664px } @media (min-width: 959px) { #menubg { width: 980px } #menu { max-width: 980px } } #menu ul { list-style: none; margin: 0 2.25em 0 0.8em; padding: 0; max-width: 664px; scrollbar-width: none; /* Firefox */ white-space: nowrap; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; -ms-overflow-style: -ms-autohiding-scrollbar } @media (min-width: 959px) { #menu ul { float: right; max-width: 980px } } #menu ::-webkit-scrollbar { display: none } /* Safari, Chrome, Edge */ #menu ul li { display: inline-block } #menu ul li a:link, #menu ul li a:visited { display: inline-block; padding: 0 0.5em; font-weight: normal; font-size: 1.15em; color: #71C0FC; text-decoration: none; border: none; background-attachment: fixed; background: transparent url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'1'%20height%3D'41'%3E%3Cpath%20fill%3D'%23237fbe'%20d%3D'M0%200h1v41H0z'%2F%3E%3Cpath%20fill%3D'%23156aab'%20d%3D'M0%204h1v1H0zM0%2035h1v1H0z'%2F%3E%3Cpath%20fill%3D'%234fa2e4'%20d%3D'M0%205h1v1H0zM0%2036h1v1H0z'%2F%3E%3C%2Fsvg%3E") no-repeat center 0 } @media (min-width: 666px) { #menu ul li a:link, #menu ul li a:visited { font-size: 1.045em } } @media (min-width: 959px) { #menu ul li a:link, #menu ul li a:visited { font-size: 1em; padding: 0 0.75em } } #menu ul li a:hover { color: #D4E59F; border: none; height: 41px; background-attachment: fixed; background: transparent url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'150'%20height%3D'41'%3E%3Cpath%20fill%3D'%23237fbe'%20d%3D'M0%200h150v41H0z'%2F%3E%3Cpath%20fill%3D'%23156aab'%20d%3D'M0%204h150v1H0zM0%2035h150v1H0z'%2F%3E%3Cpath%20fill%3D'%234fa2e4'%20d%3D'M0%205h150v1H0zM0%2036h150v1H0z'%2F%3E%3Cpath%20d%3D'M64%2041h14l-7-7z'%20opacity%3D'.2'%2F%3E%3Cpath%20fill%3D'%23fff'%20d%3D'M68%2041h14l-7-7z'%2F%3E%3C%2Fsvg%3E") no-repeat center 0 } #menu ul li a { transition: background-image .2s } #menu ul li#current a { color: #FFF; border: none; height: 41px; background: transparent url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'150'%20height%3D'41'%3E%3Cpath%20fill%3D'%23237fbe'%20d%3D'M0%200h150v41H0z'%2F%3E%3Cpath%20fill%3D'%23156aab'%20d%3D'M0%204h150v1H0zM0%2035h150v1H0z'%2F%3E%3Cpath%20fill%3D'%234fa2e4'%20d%3D'M0%205h150v1H0zM0%2036h150v1H0z'%2F%3E%3Cpath%20d%3D'M62%2041h14l-6-9z'%20opacity%3D'.2'%2F%3E%3Cpath%20fill%3D'%23fff'%20d%3D'M66%2041h18l-9-9z'%2F%3E%3C%2Fsvg%3E") no-repeat center 0 } #menu #fixright { float: right; position: relative; top: -41px; left:-5px; height: 0; color: #71C0FC; text-decoration: none; margin: 0; padding: 0; background: none; animation: arrowslide 1s ease-in-out infinite } @keyframes arrowslide { 0%, 100% { transform: translate(-4px, 0) } 50% { transform: translate(0, 0) } } @media (min-width: 959px) { #menu #fixright { visibility: hidden } } #picafter { height: 7px } @media (min-width: 959px) { #picafter { height: 17px; width: 980px; transition: background .2s; background: #CCC url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'980'%20height%3D'17'%3E%3Cpath%20fill%3D'%23237fbe'%20d%3D'M0%200h980v17H0z'%2F%3E%3Cpath%20fill%3D'%23fff'%20d%3D'M5%200h970v17H5z'%2F%3E%3Cpath%20fill%3D'%23ceed92'%20d%3D'M749%207h221v10H749z'%2F%3E%3Cpath%20fill%3D'%23edfdce'%20d%3D'M749%208h220v9H749z'%2F%3E%3Cpath%20stroke%3D'%23ededed'%20stroke-linecap%3D'round'%20stroke-width%3D'2'%20d%3D'M737%2017l9-9'%2F%3E%3Cpath%20stroke%3D'%23dadada'%20stroke-linecap%3D'round'%20stroke-width%3D'2'%20d%3D'M739%2017l10-10'%2F%3E%3Cpath%20fill%3D'%23f0f0f0'%20d%3D'M750%206h219v1H750z'%2F%3E%3Cpath%20fill%3D'%23d5eba7'%20d%3D'M750%206l-10%2010h10z'%2F%3E%3Cpath%20fill%3D'%23bbd980'%20d%3D'M749%207l-8%208h8z'%2F%3E%3Cpath%20fill%3D'rgba(0,0,0,0.2)'%20d%3D'M741%2016h8v1h-8z'%2F%3E%3C%2Fsvg%3E") repeat-y center top } } @media (max-width: 959px) { #menu ul { display: flex } #menu ul li#current { order: -1 } #menu ul li#current a { font-weight: bold; letter-spacing: 0.1em } #menu ul li#current:after { content: " • "; color: #71C0FC; position: relative; top: 1px } } #scrollindicator { position: relative; top: 1px; height: 4px; width: 0; border-radius: 0 2px 2px 0; background: #85bd53; transition: width .2s linear } @media (max-width: 959px) { #scrollindicator { position: absolute } } /******** ส่วนที่ 3A เนื้อหาหลักของหน้าปกติ **********/ #main { padding: 0; display: block; overflow: hidden; max-width: 664px; margin: auto } @media (min-width: 959px) { #main { float: left; width: 664px; margin: 5px 0 0 25px } } #main a { font-size: 1.025em; padding: 0 1px } #main a.framelink, #main a.framelink.mhp { font: bold 0.95em/1.2 TextNotSoBold, sans-serif } /* ปุ่มใน class และ premium (ตอนนี้ใช้เหมือนกัน) */ #main .bigintro a.framelink { font: 500 0.95em/1.2 Text, sans-serif } /* ปุ่มใน class แถวบน */ #main a.inframe { font: 500 1em/1.55 Text, sans-serif; display: inline-block; padding-top: 1px } /*buttonlink - ปุ่มที่อยู่ภายใน modal*/ #main a.inframe.normalfont { font: bold 1em/1.5 TextNotSoBold, sans-serif } /* เฉพาะปุ่มเล่นคลิปใน class */ #main a.inline { font: bold 1em/1.55 TextNotSoBold, sans-serif; display: inline-block; width: auto; padding: 0 10px; margin: 5px 3px } /*buttonlink - คู่มือครู*/ #main b { font-size: 1.05em; color: #666; padding: 0 2px } #main b.clb { color: #0AA } #main strong { color: #666; padding: 0 2px } #main b, #main strong { transition: color .2s } #main ul li { list-style-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'10'%20height%3D'16'%3E%3Ccircle%20cx%3D'5'%20cy%3D'11'%20r%3D'2.5'%20fill%3D'%23edfdce'%20stroke%3D'%2398D661'%20stroke-width%3D'2.5'%2F%3E%3C%2Fsvg%3E") } #main abbr { display: inline-block; line-height:1.2; border-bottom: 1px dashed #2180BC; cursor: help } /* หน้าแรก, ปุ่มเลือกหน้าในบอร์ด, แสดงชื่อกระทู้เต็ม */ #main a.buttonlink abbr, #main abbr { display: initial; border: none; cursor: pointer } /* ปุ่มใน MHP modal, ปุ่ม dark mode */ #main img { border: 1px dashed #DDD; padding: 2px; margin: 5px } #main .loginpic { margin-left: 13px } #main .loginpic img { width: 40%; border: 1px solid #09C; border-radius: 3%/4.5%; padding: 0 } #main .loginpic img.loginblank { border-color: #CCC } #main .loginpic input { width: 56px; text-transform: uppercase; text-align: center; margin: 0 21px 0 -80px; border-color: #09C; position: relative; z-index: 90 } #main .loginpic input.inputblank { border-color: #0AA } #main .loginpic input.inputdisable { border-color: #CCC; background-color: #DDD; opacity: 0.7 } /* ถ้าเปิดใช้บอร์ดแล้วลบบรรทัดนี้ทิ้ง */ @media (max-width: 540px) { #main .loginpic { margin: 0 } #main .loginpic img { width: 41vw; min-width: 120px } #main .loginpic input { width: 48px; margin: 0 1em 0 -5.2em } } #main .tdport { padding: 8px 0 0 } /*td หน้า port*/ @media (max-width: 520px) { #main .tdport { width: 33% } } /*td หน้า port*/ #main figure img { border: 1px solid #CCC; padding: 0; margin: 0 } /*หน้า port*/ @media (max-width: 520px) { #main figure img { width: 88%; height: auto } } /*หน้า port*/ #main figcaption { position: relative; top: -8px; color: #888; height: 10px; margin: 0 0 8px 0; font-family: TextNotSoBold, sans-serif; font-weight: bold; font-size: 0.9em } /*หน้า port*/ #main .solbg { background: #005454; margin: 10px auto 5px; padding: 0; max-width: 500px; background: radial-gradient(circle, #005d5d 0%, #004e4e 100%) } #main .solbggreen { background: #005454; margin: 10px auto 5px; padding: 0; max-width: 500px } /*Firefox ต้องตั้งค่า gfx.color_management.force_srgb = true ไม่งั้นรูปจะถูกปรับสีไป */ /* หรืออีกวิธีคือ gfx.color_management.mode = 0 (disable ห้ามแก้สีใดๆ) NOTE: 1 = full enable (แก้ทั้งสีรูปและสีพื้นหลัง ทำให้สียังเสมอกัน แต่ค่าเปลี่ยน) // 2 (default) = enable only ICC tagged image (แก้เฉพาะสีรูป ไม่แก้สีพื้น ทำให้สีไม่เสมอกัน) */ @media (min-width: 501px) { #main .solbg, #main .solbggreen { border-radius: 0.6em } } #main .solbgwhite { background: white; margin: 10px auto 5px; padding: 0; max-width: 500px; border-bottom: 2px dotted #0AA } #main .solbg h3, #main .solbggreen h3 { background-color: white; padding: 0 0.3em; font-size: 1.25em; border-radius: 0 0 0.3em 0 } #main .solbgwhite h3 { background-color: #E5F6F6; padding: 0 0.3em; font-size: 1.25em; color: #F63; border-radius: 0.3em } #main .solbggreen img, #main .solbgwhite img { margin: 2px auto } /* ป้องกันรูปเฉลยทับเลขข้อ */ #main .solimg { display: block; border: none; padding: 0 0 4%; margin: 0 auto; width: 96% } #main audio { padding: 10px 0; width: 95%; max-width: 300px; height: 32px } #main #igthumb { min-width: 185px; margin: 10px 0 0 0 } #main #igthumb svg { margin: 0 -1px -1px 0; border: none; padding: 0 } #main .igt { background-image: url(../../index-order-ig.png); width: 80px; height: 80px; background-size : 400% 300% } #main #igt1 { background-position: 0 0 } #main #igt2 { background-position: 240px 0 } #main #igt3 { background-position: 160px 0 } #main #igt4 { background-position: 80px 0 } #main #igt5 { background-position: 0 160px } #main #igt6 { background-position: 240px 160px } #main #igt7 { background-position: 160px 160px } #main #igt8 { background-position: 80px 160px } #main #igt9 { background-position: 0 80px } #main #igt10 { background-position: 240px 80px } #main #igt11 { background-position: 160px 80px } #main #igt12 { background-position: 80px 80px } #main .banner { float: none; display: block; margin: -1.4em auto -0.6em; width: 96%; height: auto } /*img*/ #main .previewl { min-width: 340px; height: auto; margin: 5px 10px 5px 0; float: left } /*img*/ #main .previewr { min-width: 340px; height: auto; margin: 5px 0 5px 10px; float: right } /*img*/ @media (max-width: 533px) { #main .previewl, #main .previewr { float: none; clear: both; display: block; margin: 5px auto 8px; width: 80%; min-width: 300px } } #main .fb-like { float: right; padding: 5px } #main blockquote img { border: none; padding: 4px 5px 0 0; position: relative; top: 3px } #main blockquote form { margin: -15px 40px } #main blockquote form input,select { font: normal 0.95em TextNotSoBold, sans-serif; color: #0AA } @media (max-width: 666px) { #main blockquote form input.full { width: 95% } } #main blockquote form button { font: 500 0.93em Text, sans-serif; margin-bottom: 10px } #faulttable table { font-size: 1em } #faulttable img { border: 0; padding: 0; margin: 0 } #porttable table { font-size: 1em } #porttable td { vertical-align: top } #porttable img { margin: 10px 5px } #porttable img+img { margin: 0 5px 10px } #downtable td { padding: 1px; text-align: left; border: none; border-bottom: 1px solid #F4F4F4; color: #222; background: #F4F4F4 url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'6'%20height%3D'6'%3E%3Cpath%20fill%3D'%23fff'%20d%3D'M1.5%200h3L0%204.5v-3zM1.5%206h3L6%204.5v-3z'%2F%3E%3C%2Fsvg%3E") repeat } #downtable .downicon { width: 15%; text-align: right; padding-right: 0.5em } /*td*/ #downtable .downstat { padding-left: 5px; font-size: 0.9em } /*td*/ /******** ส่วนที่ 3B เนื้อหาหลักของเว็บบอร์ด **********/ #kratoo { padding: 0; margin: 5px; display: block; overflow: hidden; max-width: 664px; margin: auto } @media (min-width: 959px) { #kratoo { float: left; width: 664px; margin: 10px 0 0 25px } } #kratoo img { border: none; padding: 0; margin: 5px 0 0; max-width: 90% } @media (min-width: 959px) { #kratoo img { max-width: none } } #kratoo .icon { position: relative; left: -8px } /*img*/ #kratoo .eqn { vertical-align: middle; margin: 1px 1px 2px } /*img*/ #kratoo a abbr { font-size: 1.0em } /*บรรทัดนี้เพื่อ opera*/ #kratoo abbr { border: none; cursor: pointer } #kratoo .wbnote { font-family: TextNotSoBold, sans-serif; font-weight: bold; font-size: 0.85em; color: #AC5; line-height: 2.5; margin-left: 20px; padding: 0 7px; border: 1px dashed #AC5 } #kratoo .fb-like { float: right; padding: 5px } #kratoo h1 .kttag { display: block; font-size: 0.65em; color: #888; font-weight: normal } #kratoo h1 .kttag a { color: #888; font-weight: normal; border-bottom: 1px dashed #888 } #kratoo h1 .kttag a:hover { text-decoration: none } #kratoo .banner img { border: none; width: 100%; height: auto } @media (min-width: 959px) { #kratoo .banner img { position: relative; top:-18px; margin-left: 10px } } /* หน้าสารบัญ */ .ktgoto { text-align: right; padding: 5px 10px 7px; border-bottom: 1px solid #EEE; line-height: 1.0 } .ktgoto input { height: 1.4em; width: 1.4em; font-size: 0.85em; margin: 0; padding: 0 3px } .ktgoto#g2 { border-bottom: 0 } .ktgoto a:link, .ktgoto a:visited { color: #888; display: inline-block; min-width: 12px; padding: 5px 6px; text-align: center; font-family: TextNotSoBold; text-decoration: none } .ktgoto a:hover { color: #08C; background-color: #EEE; border-radius: 6px } .ktgoto a.cdot { min-width: 6px; padding: 0 } .ktgoto h2 { display: inline-block; padding: 4px 9px; margin: 0 3px; background-color: #98d661; color: white; border-radius: 6px } .hbox { margin: 0; padding: 7px 10px; border-bottom: 1px solid #EEE; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis } .hbox:hover { overflow: visible } .hbox b { font-weight: 500 } .hbox .svg8 { margin-right: 8px } .hbox .name { margin-left: 25px; padding: 0 5px 0 20px; font-weight: 500; background: transparent url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'15'%20height%3D'15'%20viewBox%3D'0%200%2019%2019'%3E%3Cdefs%3E%3ClinearGradient%20id%3D'a'%20x2%3D'0'%20y2%3D'100%25'%3E%3Cstop%20offset%3D'0'%20stop-color%3D'%236EC8F0'%2F%3E%3Cstop%20offset%3D'100%25'%20stop-color%3D'%23529CD1'%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20fill%3D'url(%23a)'%20d%3D'M18%204.32L14.12.44a1.5%201.5%200%200%200-2.12%200L1.06%2011.38c-.3.3-.56.73-.75%201.19-.2.46-.31.96-.31%201.37v4.5h4.5c.41%200%20.9-.12%201.37-.31.46-.2.9-.46%201.19-.75L18%206.44a1.5%201.5%200%200%200%200-2.12zM2.77%2012.5l8.3-8.3%201.22%201.24L4%2013.74%202.77%2012.5zm1.73%203.94H3l-1-1v-1.5c0-.08.03-.3.16-.6%200-.03%202.96%202.93%202.96%202.93-.32.14-.54.17-.62.17zm1.44-.77L4.7%2014.44%2013%206.14l1.23%201.24-8.3%208.3zm9-9L11.77%203.5l1.29-1.3%203.17%203.18-1.3%201.3z'%2F%3E%3C%2Fsvg%3E") no-repeat left center } .hbox .nameadd { margin-left: 25px; padding: 0 5px 0 20px; font-weight: 500; background: transparent url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'16'%20height%3D'16'%3E%3Cpath%20fill%3D'%23A4D1FB'%20stroke%3D'%23237FBE'%20stroke-linejoin%3D'round'%20d%3D'M1.5%204.5l-.1%205c0%201.5%201%202%202%202h5l3%203v-3h1c1.5%200%202-.5%202-2v-5c.1-1.5-.9-2-1.9-2h-9c-1.5%200-2%20.5-2%202z'%2F%3E%3Cpath%20fill%3D'%23BEBE00'%20stroke%3D'%23FFF'%20d%3D'M2.5%207.5h3v-2h2v-3h-2v-2h-3v2h-2v3h2z'%2F%3E%3C%2Fsvg%3E") no-repeat left center } .hbox .comment { margin: 0; padding: 0 5px; font-size: 0.85em; color: #888 } @media (min-width: 430px) { .hbox { padding-left: 25px } .hbox .name, .hbox .nameadd { margin-left: 45px } } .hbox2 { margin: 0; padding: 5px 10px; background: #F4F4F4 url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'6'%20height%3D'6'%3E%3Cpath%20fill%3D'%23fff'%20d%3D'M1.5%200h3L0%204.5v-3zM1.5%206h3L6%204.5v-3z'%2F%3E%3C%2Fsvg%3E") } @media (min-width: 430px) { .hbox2 { padding-left: 25px } } .hbox2 table, .hbox2 table td { margin: 0; padding: 0; border: none; height: 1.8em; background: transparent } .hbox2 b { font-weight: 500 } .hbox2 .svg8 { margin-right: 8px } .hbox2 .name { padding: 0 5px 0 20px; font-weight: 500; margin: 0; background: transparent url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'15'%20height%3D'15'%20viewBox%3D'0%200%2019%2019'%3E%3Cdefs%3E%3ClinearGradient%20id%3D'a'%20x2%3D'0'%20y2%3D'100%25'%3E%3Cstop%20offset%3D'0'%20stop-color%3D'%236EC8F0'%2F%3E%3Cstop%20offset%3D'100%25'%20stop-color%3D'%23529CD1'%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20fill%3D'url(%23a)'%20d%3D'M18%204.32L14.12.44a1.5%201.5%200%200%200-2.12%200L1.06%2011.38c-.3.3-.56.73-.75%201.19-.2.46-.31.96-.31%201.37v4.5h4.5c.41%200%20.9-.12%201.37-.31.46-.2.9-.46%201.19-.75L18%206.44a1.5%201.5%200%200%200%200-2.12zM2.77%2012.5l8.3-8.3%201.22%201.24L4%2013.74%202.77%2012.5zm1.73%203.94H3l-1-1v-1.5c0-.08.03-.3.16-.6%200-.03%202.96%202.93%202.96%202.93-.32.14-.54.17-.62.17zm1.44-.77L4.7%2014.44l8.3-8.3%201.23%201.24-8.3%208.3zm9-9L11.77%203.5l1.29-1.3%203.17%203.18-1.3%201.3z'%2F%3E%3C%2Fsvg%3E") no-repeat left center } .hbox2 .comment { margin: 0; padding: 0 0 0 5px; font-size: 0.85em; color: #888 } /* หน้าค้นหา */ .ktsrh { margin: 15px 0; padding: 0 0 0 20px; line-height: 1.5 } .ktsrh .svg8 { margin-right: 8px } .ktsrh .name { margin-left: 38px; padding: 0 5px 0 20px; font-weight: 500; background: transparent url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'15'%20height%3D'15'%20viewBox%3D'0%200%2019%2019'%3E%3Cdefs%3E%3ClinearGradient%20id%3D'a'%20x2%3D'0'%20y2%3D'100%25'%3E%3Cstop%20offset%3D'0'%20stop-color%3D'%236EC8F0'%2F%3E%3Cstop%20offset%3D'100%25'%20stop-color%3D'%23529CD1'%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20fill%3D'url(%23a)'%20d%3D'M18%204.32L14.12.44a1.5%201.5%200%200%200-2.12%200L1.06%2011.38c-.3.3-.56.73-.75%201.19-.2.46-.31.96-.31%201.37v4.5h4.5c.41%200%20.9-.12%201.37-.31.46-.2.9-.46%201.19-.75L18%206.44a1.5%201.5%200%200%200%200-2.12zM2.77%2012.5l8.3-8.3%201.22%201.24L4%2013.74%202.77%2012.5zm1.73%203.94H3l-1-1v-1.5c0-.08.03-.3.16-.6%200-.03%202.96%202.93%202.96%202.93-.32.14-.54.17-.62.17zm1.44-.77L4.7%2014.44%2013%206.14l1.23%201.24-8.3%208.3zm9-9L11.77%203.5l1.29-1.3%203.17%203.18-1.3%201.3z'%2F%3E%3C%2Fsvg%3E") no-repeat left center } .ktsrh .comment { margin: 0; padding: 0 0 0 5px; font-size: 0.85em; color: #888 } /* หน้าแสดงกระทู้ */ .ktbq { background: #FFF; padding: 10px 5px 0 10px; margin: 0 } .ktbq .ktuser { width: 100%; text-align: right; padding: 20px 0 10px } .ktbq .ktuser .name { padding: 0 3px 0 22px; font-weight: 500; color: #666; background: transparent url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'16'%20height%3D'16'%3E%3Cpath%20fill%3D'%23A4D1FB'%20stroke%3D'%23237FBE'%20stroke-linejoin%3D'round'%20d%3D'M1.5%204.5l-.1%205c0%201.5%201%202%202%202h5l3%203v-3h1c1.5%200%202-.5%202-2v-5c.1-1.5-.9-2-1.9-2h-9c-1.5%200-2%20.5-2%202z'%2F%3E%3Cpath%20fill%3D'%23BEBE00'%20stroke%3D'%23FFF'%20d%3D'M2.5%207.5h3v-2h2v-3h-2v-2h-3v2h-2v3h2z'%2F%3E%3C%2Fsvg%3E") no-repeat left center } .ktbq .ktuser .comment { margin: 0; padding: 0 0 0 3px; font-size: 0.85em; color: #888 } .ktbq .ktuser form { display: inline; font-size: 0.9em } .ktbq.admin { background: transparent url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'6'%20height%3D'6'%3E%3Cpath%20fill%3D'%23fff'%20d%3D'M1.5%200h3L0%204.5v-3zM1.5%206h3L6%204.5v-3z'%2F%3E%3C%2Fsvg%3E") } .ktbq.admin .ktuser .name { color: #0AA; background: transparent url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'16'%20height%3D'16'%3E%3Cpath%20fill%3D'%23FFEA68'%20stroke%3D'%23E9B833'%20stroke-linejoin%3D'round'%20d%3D'M1.5%204.5l-.1%205c0%201.5%201%202%202%202h5l3%203v-3h1c1.5%200%202-.5%202-2v-5c.1-1.5-.9-2-1.9-2h-9c-1.5%200-2%20.5-2%202z'%2F%3E%3Cpath%20fill%3D'%2384bc3b'%20stroke%3D'%23FFF'%20d%3D'M2.5%207.5h3v-2h2v-3h-2v-2h-3v2h-2v3h2z'%2F%3E%3C%2Fsvg%3E") no-repeat left center } .ktbq.editable .ktuser .name { background: transparent url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'16'%20height%3D'16'%3E%3Cpath%20fill%3D'%23FFEA68'%20stroke%3D'%23E9B833'%20stroke-linejoin%3D'round'%20d%3D'M1.5%204.5l-.1%205c0%201.5%201%202%202%202h5l3%203v-3h1c1.5%200%202-.5%202-2v-5c.1-1.5-.9-2-1.9-2h-9c-1.5%200-2%20.5-2%202z'%2F%3E%3Cpath%20fill%3D'%2384bc3b'%20stroke%3D'%23FFF'%20d%3D'M2.5%207.5h3v-2h2v-3h-2v-2h-3v2h-2v3h2z'%2F%3E%3C%2Fsvg%3E") no-repeat left center } .ktbq.first { padding-top: 10px } .ktbq.first .ktuser .name { background: transparent url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'16'%20height%3D'16'%3E%3Cpath%20fill%3D'%23A4D1FB'%20stroke%3D'%23237FBE'%20stroke-linejoin%3D'round'%20d%3D'M1.5%204.5l-.1%205c0%201.5%201%202%202%202h5l3%203v-3h1c1.5%200%202-.5%202-2v-5c.1-1.5-.9-2-1.9-2h-9c-1.5%200-2%20.5-2%202z'%2F%3E%3C%2Fsvg%3E") no-repeat left center } .ktbq.admin.first .ktuser .name { background: transparent url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'16'%20height%3D'16'%3E%3Cpath%20fill%3D'%23FFEA68'%20stroke%3D'%23E9B833'%20stroke-linejoin%3D'round'%20d%3D'M1.5%204.5l-.1%205c0%201.5%201%202%202%202h5l3%203v-3h1c1.5%200%202-.5%202-2v-5c.1-1.5-.9-2-1.9-2h-9c-1.5%200-2%20.5-2%202z'%2F%3E%3C%2Fsvg%3E") no-repeat left center } .ktbq.editable.first .ktuser .name { background: transparent url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'16'%20height%3D'16'%3E%3Cpath%20fill%3D'%23FFEA68'%20stroke%3D'%23E9B833'%20stroke-linejoin%3D'round'%20d%3D'M1.5%204.5l-.1%205c0%201.5%201%202%202%202h5l3%203v-3h1c1.5%200%202-.5%202-2v-5c.1-1.5-.9-2-1.9-2h-9c-1.5%200-2%20.5-2%202z'%2F%3E%3C%2Fsvg%3E") no-repeat left center } .ktbq table { text-align: left; margin: 5px 10px -15px; font-size: 0.9em } @media (min-width: 959px) { .ktbq table { width: 625px } } .ktbq table td { padding: 10px; margin: 0; border-style: dashed; background: transparent } .ktbq .imgwarn { margin: -15px 0 0; padding: 0; font-size: 0.85em; text-align: center } /*p*/ blockquote.nopad { padding: 5px 5px 5px 10px; border-color: #8CC } /* ใช้ที่ search, upload */ blockquote.quote { padding: 10px 10px 5px 38px; border: none; font-size: 0.90em; margin: 8px 10px; background: #FAFAFA url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'32'%20height%3D'32'%3E%3Cpath%20fill%3D'silver'%20d%3D'M14.4%201.2c-4.2%203.2-8.2%207.3-11%2012.3-1.1%201.8-1.8%204-2.1%206.1-.2%202-.4%204.3.7%206.1.6%201.1%201.8%201.9%203%202.3a5%205%200%200%200%203.8-.3c1.1-.6%201.9-1.7%202.3-2.9.4-1.4.1-3-.3-4.4-.4-1.6-2.1-3.1-2.2-4.3-.1-1.3%201.1-3.9%202.1-5.6%201.4-2.3%203-3.5%205.3-6zM28.6%201.2a45.3%2045.3%200%200%200-11.1%2012.3c-1.1%201.8-1.8%204-2%206.1-.2%202-.4%204.3.6%206.1.6%201.1%201.8%201.9%203%202.3a5%205%200%200%200%203.8-.3c1.1-.6%201.9-1.7%202.3-2.9.4-1.4.1-3-.3-4.4-.4-1.6-2.1-3.1-2.2-4.3-.1-1.3%201.1-3.9%202.1-5.6%201.4-2.3%203-3.5%205.3-6z'%2F%3E%3C%2Fsvg%3E") no-repeat 4px -5px } blockquote.quote .name-comment { width: 100%; text-align: right; padding: 15px 0 0 3px; font-size: 0.95em; color: #888 } .regform { padding: 10px 0 } .regform table td { border: none; padding: 5px; margin: 0; background: transparent } .hrline { margin: 12px 0; padding: 0; height: 0; border-top: 1px dashed #DDD; border-left: none; border-right: none; border-bottom: none } /* หน้าสารบัญและแสดงกระทู้ */ table#wbnav { width: 100%; margin: 0 0 10px } table#wbnav h1 { text-align: left } table#wbnav a.buttonlink { display: inline-block; margin: 3px 4px } table#wbnav a abbr { font-size: 0.9em } table#wbnav td { padding: 0; border: none; background: none } table#wbnav td.buttontd { padding: 3px 0; width: calc(100vw - 156px); max-width: 243px } /* wbboard */ table#wbnav td.buttontd#buttontdmid { padding: 3px; width: 185px } table#wbnav td a.wbnavlink { display: inline-block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: calc(37vw - 10px); max-width: 250px } table#wbnav td#left { color: #888; width: 30%; background: transparent url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'16'%20height%3D'16'%20viewBox%3D'0%200%2010%2014'%3E%3Cdefs%3E%3ClinearGradient%20id%3D'a'%20x2%3D'0'%20y2%3D'100%25'%3E%3Cstop%20offset%3D'0'%20stop-color%3D'%23AAA'%2F%3E%3Cstop%20offset%3D'100%25'%20stop-color%3D'%23646464'%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20fill%3D'url(%23a)'%20stroke%3D'url(%23a)'%20stroke-linejoin%3D'round'%20stroke-width%3D'2'%20d%3D'M8%202L2%207l6%205z'%2F%3E%3C%2Fsvg%3E") no-repeat left 4px } table#wbnav td#right { color: #888; width: 30%; background: transparent url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'16'%20height%3D'16'%20viewBox%3D'0%200%2010%2014'%3E%3Cdefs%3E%3ClinearGradient%20id%3D'a'%20x2%3D'0'%20y2%3D'100%25'%3E%3Cstop%20offset%3D'0'%20stop-color%3D'%23AAA'%2F%3E%3Cstop%20offset%3D'100%25'%20stop-color%3D'%23646464'%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20fill%3D'url(%23a)'%20stroke%3D'url(%23a)'%20stroke-linejoin%3D'round'%20stroke-width%3D'2'%20d%3D'M2%202l6%205-6%205z'%2F%3E%3C%2Fsvg%3E") no-repeat right 3px } /* ช่องกรอก หน้าแสดง, ตั้งกระทู้, อ้าง, แก้ */ table.ktcm { background: #F4F4F4 url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'6'%20height%3D'6'%3E%3Cpath%20fill%3D'%23fff'%20d%3D'M1.5%200h3L0%204.5v-3zM1.5%206h3L6%204.5v-3z'%2F%3E%3C%2Fsvg%3E"); padding: 0; margin: 15px 0 0 } table.ktcm td { padding: 3px 5px 3px 0; border: none; background: none; color: #888 } table.ktcm td.ktbutt { width: 100px } table.ktcm #topic { width: 90%; margin-top: 5px } table.ktcm #tag { width: 90% } table.ktcm #from { width: 65% } table.ktcm #pass { width: 17% } table.ktcm #passxx { width: 50px } /*wbedit*/ table.ktcm #email { width: 87% } table.kteqn { background: #F4F4F4 url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'6'%20height%3D'6'%3E%3Cpath%20fill%3D'%23fff'%20d%3D'M1.5%200h3L0%204.5v-3zM1.5%206h3L6%204.5v-3z'%2F%3E%3C%2Fsvg%3E"); padding: 0; margin: 0 } table.kteqn td { padding: 7px 5px 0; border: none; background: none; color: #666 } table.kteqn .equatest { display: inline-block; width: 49%; height: 100px; padding: 3px 0; margin-bottom: 8px; font-size: 0.9em; background: #FFF; border: 1px solid #CCC } table.kteqn #equaSource { float: left } table.kteqn #equaDest { float: right } /* กันพลาดตอนกดปุ่ม */ table.mathprob { margin-left: 30px; width: auto } table.mathprob td { padding: 0 20px; border: 1px solid #CCC; background: none; text-align: center } #showsm { display: inline-block; width: 450px } @media (max-width: 460px) { #showsm { width: 315px } #showsm img { height: auto } } #showsm table, #showtg table { width: auto; margin: 3px 0 0 5px } /* สำหรับ IE */ #showsm table td, #showtg table td { background: transparent; border: 0; padding: 0 1px; line-height: 0.8; height: 18px } #showsm table td { display: inline-block } #showtg table td.blank { padding: 0; height: 8px } #showsm table img { border: none; cursor: pointer; padding: 0; margin: 0 } #showtg table img { border: 1px solid #CCC; cursor: pointer; padding: 0; margin: 0 } #showtg table img:hover { border: 1px solid #0AA } #smch, #tgch { border: none; background: none; position: relative; top: 6px } /* หน้าแอดมิน */ table#adminmenu { width: 90%; margin: 0 30px } table#adminmenu td { text-align: left; border: none; padding: 6px; background: none } /* counterใช้ร่วมกันทั้ง 3A, 3B */ #counter { clear: both; float: right; padding: 0; margin: 10px; color: #08C; text-align: right } #counternum { font-weight: bold; text-decoration: underline; padding: 0 } #counterword { font-size: 0.85em; padding: 0 } /******** ส่วนที่ 4 ลิงก์แถบข้าง **********/ #sidebarbg { clear: both; background-color: #edfdce; margin: 15px 0 -10px; border-top: 1px dashed #CCC; transition: border .2s, background .2s } #sidebar { color: #68774A; margin: auto; max-width: 664px } @media (min-width: 959px) { #sidebarbg { clear: none; float: right; width: 214px; padding: 0 0 0 5px; margin: -10px 0 25px; border-top: none } } #sidebar h2 { display: inline; margin: 0; padding: 15px 12px 5px 8px; color: #0AA; font-weight: bold; font-size: 1.1em; border: none } #sidebar svg { margin: 10px 0 0 25px } @media (min-width: 959px) { #sidebar svg { margin: 10px 0 0 5px } } #sidebar .sidebox a:link, #sidebar .sidebox a:visited { color: #666; font-weight: normal } #sidebar .sidebox a:hover { text-decoration: underline; color: #08C } #fblikebox { margin: 5px -5px -5px -10px; width: 226px; height: 350px; filter: none; transition: filter .2s } /* filter & transition สำหรับ dark mode */ #thankbox { margin: 0 5px; font-size: 0.85em } #warnbox { margin: 0 5px 0 0; font-size: 0.85em } #warnbox a { color: #68774A; text-decoration: underline } @media (max-width: 959px) { #fblikebox { margin: 5px auto -10px; width: 94%; max-width: 310px } #thankbox { visibility: hidden; height: 0 } #warnbox { clear: left; margin: 0 20px; font-size: 0.85em } } @media (min-width: 666px) and (max-width: 959px) { #tabletleft { float: left; width: 310px } #tabletright { float: right; width: 100%; max-width: 340px } #warnbox { width: 310px } } #sidebar ul.sidemenu { list-style: none; text-align: left; margin: 3px 10px 15px 15px; color: #68774A; transition: color .2s, border .2s; border-top: 1px dashed #DDD; padding: 0; text-decoration: none } @media (min-width: 959px) { #sidebar ul.sidemenu { margin: 3px 10px 15px 0 } } #sidebar ul.sidemenu li { list-style: none; padding: 1px 20px 2px; margin: 0; color: #68774A; transition: color .2s, border .2s, background .2s; border-bottom: 1px dashed #DDD; background: transparent url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'8'%20height%3D'14'%3E%3Cpath%20fill%3D'none'%20stroke%3D'%23529cd1'%20stroke-linecap%3D'round'%20stroke-width%3D'2'%20d%3D'M2%203l4%205-4%205'%2F%3E%3C%2Fsvg%3E") no-repeat 5px 5px } @media (min-width: 959px) { #sidebar ul.sidemenu li { padding: 1px 0 2px 20px } } #sidebar ul.sidemenu li a:link, #sidebar ul.sidemenu li a:visited { text-decoration: none; background-image: none; color: #666 } #sidebar ul.sidemenu li a:hover { color: #08C } .searchform { background-color: transparent; border: none; margin: 0 0 0 20px; padding: 5px 8px 15px } @media (min-width: 959px) { .searchform { margin: 0; width: 190px } } .searchform input { width: 190px; height: 23px; padding: 0 0 0 3px; margin: 0 3px 0 -3px; vertical-align: top } @media (min-width: 959px) { .searchform input { width: 120px } } .searchform button { width: 58px; height: 25px; padding: 0; margin: 0; vertical-align: top } /******** ส่วนที่ 5 ข้อมูลเว็บไซต์ ล่างสุดของหน้า **********/ #footerbg { clear: both; transition: background .2s; background: #CCC url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'980'%20height%3D'62'%3E%3Crect%20width%3D'980'%20height%3D'62'%20fill%3D'%23237fbe'%2F%3E%3Cpath%20fill%3D'%231669ab'%20d%3D'M0%205h980v1H0z'%2F%3E%3Cpath%20fill%3D'%234ea3e4'%20d%3D'M0%206h980v1H0z'%2F%3E%3C%2Fsvg%3E") no-repeat center top } #footer { color: #C6DDEE; text-align: center; font-size: 0.8em; line-height: 1.4; max-width: 664px; margin: auto } @media (min-width: 959px) { #footerbg { width: 980px; height: 93px; background: #CCC url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'980'%20height%3D'78'%3E%3Cpath%20fill%3D'%23237fbe'%20d%3D'M0%200h980v20H0z'%2F%3E%3Crect%20width%3D'980'%20height%3D'78'%20fill%3D'%23237fbe'%20rx%3D'16'%20ry%3D'16'%2F%3E%3Cpath%20fill%3D'%231669ab'%20d%3D'M0%2021h980v1H0z'%2F%3E%3Cpath%20fill%3D'%234ea3e4'%20d%3D'M0%2022h980v1H0z'%2F%3E%3Cpath%20fill%3D'%23fff'%20d%3D'M5%200h970v16H5z'%2F%3E%3Cpath%20fill%3D'%23ceed92'%20d%3D'M739%200h221v10H739z'%2F%3E%3Cpath%20fill%3D'%23edfdce'%20d%3D'M740%200h220v9H740z'%2F%3E%3Cpath%20fill%3D'%23f9f9f9'%20d%3D'M735%200h1v6h-1z'%2F%3E%3Cpath%20fill%3D'%23ededed'%20d%3D'M736%200h1v7h-1z'%2F%3E%3Cpath%20fill%3D'%23dadada'%20d%3D'M737%200h1v8h-1z'%2F%3E%3Cpath%20fill%3D'%23ccc'%20d%3D'M738%200h1v9h-1z'%2F%3E%3Cpath%20fill%3D'%23ededed'%20d%3D'M740%2010h219v1H740z'%2F%3E%3Cpath%20fill%3D'%23d5eba7'%20d%3D'M959%200h11l-11%2011z'%2F%3E%3Cpath%20fill%3D'%23bbd980'%20d%3D'M960%201h9l-9%209z'%2F%3E%3Cpath%20fill%3D'rgba(0,0,0,0.15)'%20d%3D'M958%201h1v9h-1z'%2F%3E%3C%2Fsvg%3E") no-repeat center top } #footer { max-width: 980px } } #footer .stdbox { width: 240px; margin: 0; float: right; position: relative; top: -23px; font-size: 1.1em } @media (max-width: 959px) { #footer .stdbox { opacity: 0 } } #footer svg { height: 18px; margin-top: 5px } #footer p { clear: both; padding-top: 0; position: relative; top: -11px } @media (min-width: 959px) { #footer p { width: 980px; top: 4px } } #footer a:link, #footer a:visited { color: #FFF; font-family: TextNotSoBold } #footer .svg3 { width: 3px; height: 3px } #ft1:after, #ft2:after { content: " | " } #ft4 { display: block; clear: both } @media (max-width: 959px) { #ft2:after { content: "" } #ft3 { display: block; clear: both } #ft4 { visibility: hidden; height: 0 } } /******** ส่วนที่ 6 แถม วัตถุพิเศษ **********/ /*** สวิตช์ปิดเปิด (ใช้ที่หน้า wbhistory, login-admin, ช่องทดสอบสมการ wbshow, edit, write) ***/ .switch { position: relative; top: 3px; display: inline-block; width: 30px; height: 16px; margin: 0 5px } .switch input { display:none } .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; border-radius: 15px; background-color: #CCC; transition: all .3s, background .2s } .slider:before { position: absolute; content: ""; height: 12px; width: 12px; left: 2px; bottom: 2px; border-radius: 50%; background-color: white; transition: all .3s, background .2s } input:checked + .slider { background-color: #2196F3 } input:focus + .slider { box-shadow: 0 0 1px #2196F3 } input:checked + .slider:before { transform: translateX(13.5px) } /*** ลูกศรปักหมุด ดัดแปลงจากสวิตช์ (ใช้ที่หน้า class) ***/ .pinned { display: inline-block; margin: 0 9px 0 -8px; position: relative; top: -6px } @media (min-width: 410px) { .pinned { top: -7.1px } } /*new size*/ @media (min-width: 666px) { .pinned { top: -8.5px } } /*เดิม -7px*/ .pinned input { display: none } .pinicon { display: inline-block; width: 14px; height: 14px; cursor: pointer; animation: blinker 1.5s linear infinite; background: transparent url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'14'%20height%3D'14'%3E%3Cpath%20fill%3D'none'%20stroke%3D'%23BBB'%20stroke-linecap%3D'round'%20stroke-width%3D'2'%20d%3D'M2%209l5%20-4%205%204'%2F%3E%3C%2Fsvg%3E") no-repeat center top } input:checked + .pinicon { animation: none; background: transparent url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'14'%20height%3D'14'%3E%3Cpath%20fill%3D'none'%20stroke%3D'%230AA'%20stroke-linecap%3D'round'%20stroke-width%3D'2'%20d%3D'M6%203l4%205-4%205'%2F%3E%3C%2Fsvg%3E") no-repeat center top } /*** สวิตช์สลับส่วน (ใช้ที่หน้า wbshow) ***/ .onoffswitch { display: inline-block; position: relative; width: 116px; -webkit-user-select: none; user-select: none } .onoffswitch-checkbox { display: none } .onoffswitch-label { display: block; overflow: hidden; cursor: pointer; border: 1px solid #DDD; border-radius: 7px } .onoffswitch-inner { display: block; width: 200%; margin-left: -100%; transition: margin .3s ease-in 0s } .onoffswitch-inner:before, .onoffswitch-inner:after { display: block; float: left; width: 50%; height: 25px; padding: 0; font: 500 15px/25px Text, sans-serif; color: white; box-sizing: border-box } .onoffswitch-inner:before { content: "facebook"; padding-left: 12px; background-color: rgb(35,127,190); color: #F5F5F5 } .onoffswitch-inner:after { content: "webboard"; padding-right: 9px; background-color: #EEE; color: #0AA; text-align: right } .onoffswitch-switch { display: block; width: 25px; margin: 0; background: #FFF; position: absolute; top: 0; bottom: 0; right: 89px; border: 1px solid #999; border-radius: 13px; transition: all .3s ease-in 0s } .onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner { margin-left: 0 } .onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch { right: 0; background-color: #FFF } /*** ป๊อปอัพ (ใช้ที่หน้า wbhistory) ***/ @keyframes fadeIn { from {opacity: 0} to {opacity: 1} } /* ใช้กับ lessonblock และ spinner ด้วย */ @keyframes fadeOut { from {opacity: 1} to {opacity: 0} } /* ใช้เฉพาะ lessonblock เท่านั้น (เรียกด้วย JS) */ .popup { position: relative; display: inline-block; line-height: 1.2; border-bottom: 2px dotted #2180BC; -webkit-user-select: none; user-select: none } .popuptext { visibility: hidden; position: absolute; right: calc(100% + 10px); margin-top:-80px; z-index:20; padding: 0; border-radius: 6px; background-color: rgba(0,100,100,0.7) } .popuptext::after { content: ""; position: absolute; top: 50%; left: 100%; border-width: 7px; border-style: solid; border-color: transparent transparent transparent rgba(0,100,100,0.7) } .popuptext.show { visibility: visible; animation: fadeIn ease 0.4s } #main .popuptext img { border: none; width: 200px; height: 150px; padding: 3px 3px 0 } /*** หน้าต่าง modal (ใช้ที่หน้า premium/class และอื่นๆนิดหน่อย) ***/ @keyframes fadeInUp { from { opacity: 0; transform: translateY(3%); } to { opacity: 1; transform: translateY(0px); } } @keyframes fadeOutDown { from { opacity: 1; transform: translateY(0px); } to { opacity: 0; transform: translateY(3%); } } /* ไปเรียกด้วย JS */ .modal { display: none; position: fixed; z-index: 500; left: 0; bottom: 0; width: 100%; height: 104%; /* เผื่อ 4% ด้านบนสำหรับแอนิเมชัน */ justify-content: center; align-items: center; background-color: rgba(0,8,18,0.6); -webkit-backdrop-filter: blur(2.5px); backdrop-filter: blur(2.5px); overflow: auto; /*สกรอลเมื่อเกินจอ*/ animation: fadeInUp .2s; transition: background .2s } /*@media (min-width: 410px) { .class .modal { transform: scale(1.1) } } /*ไม่เวิร์คเพราะสะดุด*/ .modalinside { width: 94vw; max-width: 505px; max-height: 94vh; /*สกรอลเมื่อเกินจอ*/ margin-top: 0 /*ไปใช้ JS คำนวณค่านี้ตามความสูง*/ } @media (max-height: 450px) { .modalinside { max-width: 650px } } /*ยืดความกว้างให้มือถือแนวนอน*/ .modal-header { margin: auto; padding: 0.3em min(2.5vw,25px); border-radius: 8px 8px 0 0; background: #0AA url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'670'%20height%3D'40'%3E%3Cdefs%3E%3ClinearGradient%20id%3D'a'%20x2%3D'0'%20y2%3D'100%25'%3E%3Cstop%20offset%3D'0'%20stop-color%3D'%2309BEBB'%2F%3E%3Cstop%20offset%3D'100%25'%20stop-color%3D'%230AD6D6'%2F%3E%3C%2FlinearGradient%3E%3Cpattern%20id%3D'b'%20width%3D'4'%20height%3D'4'%20patternUnits%3D'userSpaceOnUse'%3E%3Cpath%20d%3D'M0%204V3l3-3h1zm3%200h1V3z'%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Cpath%20fill%3D'url(%23a)'%20d%3D'M0%200h670v40H0z'%2F%3E%3Cpath%20fill%3D'url(%23b)'%20fill-opacity%3D'.15'%20d%3D'M0%200h670v40H0z'%2F%3E%3C%2Fsvg%3E") repeat-x 0 0; box-shadow: 4px 4px 10px 4px rgba(0,0,0,0.2) } .modal-header h4 { color: #FFF; line-height: 1.35; letter-spacing: 0.05em; padding-left: 7px; transition: all 0s, color .2s } .modal.green { /* all inherit */ } .modal.pink .modal-header, .modal.pink .buttonlink:not(.inactive) { background: #0AA url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'670'%20height%3D'40'%3E%3Cdefs%3E%3ClinearGradient%20id%3D'a'%20x2%3D'0'%20y2%3D'100%25'%3E%3Cstop%20offset%3D'0'%20stop-color%3D'%23FA759E'%2F%3E%3Cstop%20offset%3D'100%25'%20stop-color%3D'%23FB8DAE'%2F%3E%3C%2FlinearGradient%3E%3Cpattern%20id%3D'b'%20width%3D'4'%20height%3D'4'%20patternUnits%3D'userSpaceOnUse'%3E%3Cpath%20d%3D'M0%204V3l3-3h1zm3%200h1V3z'%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Cpath%20fill%3D'url(%23a)'%20d%3D'M0%200h670v40H0z'%2F%3E%3Cpath%20fill%3D'url(%23b)'%20fill-opacity%3D'.15'%20d%3D'M0%200h670v40H0z'%2F%3E%3C%2Fsvg%3E") repeat-x 0 0 } .modal.pink .buttonlink:not(:hover):not(:focus) { border-color: #FA9EB6 } .modal.pink .buttonlink.inactive:not(:hover) { color: #FA9EB6 } .modal.pink .clb { color: #F46290 !important } .modal.orange .modal-header, .modal.orange .buttonlink:not(.inactive) { background: #0AA url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'670'%20height%3D'40'%3E%3Cdefs%3E%3ClinearGradient%20id%3D'a'%20x2%3D'0'%20y2%3D'100%25'%3E%3Cstop%20offset%3D'0'%20stop-color%3D'%23F98252'%2F%3E%3Cstop%20offset%3D'100%25'%20stop-color%3D'%23FA946B'%2F%3E%3C%2FlinearGradient%3E%3Cpattern%20id%3D'b'%20width%3D'4'%20height%3D'4'%20patternUnits%3D'userSpaceOnUse'%3E%3Cpath%20d%3D'M0%204V3l3-3h1zm3%200h1V3z'%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Cpath%20fill%3D'url(%23a)'%20d%3D'M0%200h670v40H0z'%2F%3E%3Cpath%20fill%3D'url(%23b)'%20fill-opacity%3D'.15'%20d%3D'M0%200h670v40H0z'%2F%3E%3C%2Fsvg%3E") repeat-x 0 0 } .modal.orange .buttonlink:not(:hover):not(:focus) { border-color: #F9A085 } .modal.orange .buttonlink.inactive:not(:hover) { color: #F9A085 } .modal.orange .clb { color: #F17650 !important } .modal.blue .modal-header, .modal.blue .buttonlink:not(.inactive) { background: #0AA url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'670'%20height%3D'40'%3E%3Cdefs%3E%3ClinearGradient%20id%3D'a'%20x2%3D'0'%20y2%3D'100%25'%3E%3Cstop%20offset%3D'0'%20stop-color%3D'%2354ADF9'%2F%3E%3Cstop%20offset%3D'100%25'%20stop-color%3D'%236BB7FA'%2F%3E%3C%2FlinearGradient%3E%3Cpattern%20id%3D'b'%20width%3D'4'%20height%3D'4'%20patternUnits%3D'userSpaceOnUse'%3E%3Cpath%20d%3D'M0%204V3l3-3h1zm3%200h1V3z'%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Cpath%20fill%3D'url(%23a)'%20d%3D'M0%200h670v40H0z'%2F%3E%3Cpath%20fill%3D'url(%23b)'%20fill-opacity%3D'.15'%20d%3D'M0%200h670v40H0z'%2F%3E%3C%2Fsvg%3E") repeat-x 0 0 } .modal.blue .buttonlink:not(:hover):not(:focus) { border-color: #80C1FF } .modal.blue .buttonlink.inactive:not(:hover) { color: #80C1FF } .modal.blue .clb { color: #3F97E4 !important } .modal.grey .modal-header { background: #0AA url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'670'%20height%3D'40'%3E%3Cdefs%3E%3ClinearGradient%20id%3D'a'%20x2%3D'0'%20y2%3D'100%25'%3E%3Cstop%20offset%3D'0'%20stop-color%3D'%23999'%2F%3E%3Cstop%20offset%3D'100%25'%20stop-color%3D'%23A6A6A6'%2F%3E%3C%2FlinearGradient%3E%3Cpattern%20id%3D'b'%20width%3D'4'%20height%3D'4'%20patternUnits%3D'userSpaceOnUse'%3E%3Cpath%20d%3D'M0%204V3l3-3h1zm3%200h1V3z'%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Cpath%20fill%3D'url(%23a)'%20d%3D'M0%200h670v40H0z'%2F%3E%3Cpath%20fill%3D'url(%23b)'%20fill-opacity%3D'.15'%20d%3D'M0%200h670v40H0z'%2F%3E%3C%2Fsvg%3E") repeat-x 0 0 } .modal.grey .buttonlink:not(:hover):not(:focus) { color: #B8B8B8; border-color: #B8B8B8 } .modal.grey .clb { color: #888 !important } .modal.pink .buttonlink:not(.inactive):focus, .modal.orange .buttonlink:not(.inactive):focus, .modal.pink .buttonlink:not(.inactive):hover, .modal.orange .buttonlink:not(.inactive):hover { border-color: #DD643C } .modal-content { background-color: #EEE; margin: auto; padding: 0 min(2.5vw,25px) min(4vw,20px); box-shadow: 4px 4px 10px 4px rgba(0,0,0,0.2); border-radius: 0 0 8px 8px; transition: background .2s } .modal-content .note { font: bold 0.95em/1.3 TextNotSoBold, sans-serif; color: #555; transition: color .2s, border .2s, background .2s; border: 1px dashed #CCC; padding: 7px; margin: 0 1% 0.8em; background-color: #F5F5F5 } .modal-content .buttonlink { margin: 0.8em 0 0.5em } .modal-content .buttonlink:not(.inline) { padding: 2.5px 2px 1.5px !important } /*เพิ่มขนาดปุ่มให้กดง่ายขึ้น*/ p.codedatetime { height: 0.5em; position: relative; top: -0.5em; text-align: right; -webkit-user-select: none; user-select: none } p.codedatetime code { font-size: 0.75em } p.codedatetime.nb code { border: none; color: #FFF; transition: color .2s } p.codedatetime.nb strong { font-size: 0.75em; color: #888 } p.codedatetime.blank { height: 0 } p.mempaygrid { display: grid; grid-template-columns: auto auto auto auto; justify-content: space-between; column-gap: 0; font-size: 0.9em } @media (max-width: 490px) { p.mempaygrid { grid-template-columns: auto auto auto; justify-content: space-evenly } } @media (max-width: 374px) { p.mempaygrid { grid-template-columns: auto auto; justify-content: space-evenly } } p.tokengrid { display: grid; grid-template-columns: auto auto auto; justify-content: space-between; column-gap: 0; font-size: 0.9em } @media (max-width: 440px) { p.tokengrid { grid-template-columns: auto auto; justify-content: space-evenly } } @media (max-width: 665px) { p.mempaygrid code, p.tokengrid code { font-size: 13.5px } } .modal-close { float: right; font-weight: bold; color: #08C; margin-right: 7px; -webkit-user-select: none; user-select: none; transition: color .2s } .modal.pink .modal-close { color: #9A4DBE } .modal.orange .modal-close { color: #936D06 } .modal.blue .modal-close { color: #008A8A } .modal.grey .modal-close { color: #6F6F6F } .modal-close:hover, .modal.pink .modal-close:hover, .modal.orange .modal-close:hover, .modal.blue .modal-close:hover, .modal.grey .modal-close:hover { text-decoration: none; cursor: pointer; color: #FFF } #modalidCOURSEselect .modalinside { max-width: 600px; max-height: 96vh } #modalidCOURSEselect .modal-content .note { margin-bottom: 0 } #modalpdf, #modal-framepdf { width: 100vw; height: 100vh; top: 0 } #modal-closepdf { position: absolute; top: 2.2em; right: 1.2em; z-index: 510; height: 0 } #modal-closepdf:hover { color: #0AA } .bigintro .modal-header, .bigintro .modal-content { text-align: left } /*fix <center>*/ /*** carousel card scroll (ใช้ที่หน้า class) ***/ blockquote.bqcarousel p { padding-bottom: 10px } .carouselinner { padding: 0 4px 4px; overflow-x: auto; scrollbar-width: none } /* Firefox */ .carouselinner::-webkit-scrollbar { display: none } /* Safari, Chrome, Edge */ .tweet, .facility { display: inline-block; vertical-align: top; font: bold 0.9em/1.35 TextNotSoBold, sans-serif; color: #555; transition: color .2s, border .2s, background .2s; width: 275px; border: 1px dashed #CCC; border-radius: 0.5em; padding: 9px; margin: 0 5px 0.8em; background-color: #eaf5fb } .facility { background-color: #fef2e7 } @media (max-width: 666px) { .tweet, .facility { font-size: 0.95em } } .tweettime { text-align: right; width: 98%; margin-top: 0.75em } .scrollbutton { position: relative; display: block; float: right; top: -33px; left: -4px; width: 30px; height: 30px; border-radius: 50%; background-color: rgba(40,40,40,0.1); cursor: pointer; transition: 0.3s } .scrollbutton:hover { background-color: rgba(0,170,170,0.2) } #coursescrollbutton { background-color: rgba(100,100,100,0.1); top: -120px; left: 10px } #coursescrollbutton:hover { background-color: rgba(0,170,170,0.1) } @media (min-width: 567px) { #coursescrollbutton { display: none } } /* .classcolumn { column-count: 2; column-gap: 0 } @media (max-width: 620px) { .classcolumn { column-count: 1 } } เคยใช้กับ facility เลิกใช้แล้วเปลี่ยนเป็น carousel */ /*** progress bar (ใช้ที่หน้า class) ***/ .prglbtop { width: 35%; min-width: 180px; display: inline-block; text-align: right; vertical-align: top; padding-right: 10px; font: bold 1em TextNotSoBold, sans-serif; color: #888 } #prglbtop3 { position: relative; top: -3px } .prg { width: 50%; display: inline-block; vertical-align: top; margin: 0 auto; position: relative; overflow: hidden } @media (max-width: 460px) { .prglbtop { width: 80%; display: block; text-align: left; padding-left: 9% } #prglbtop3 { top: 0 } .prg { width: calc(65% + 70px); display: block; margin-bottom: -4px } } .prgbg { width: calc(100% - 2px); height: 15px; display: block; background: rgba(200,200,200,0.22); border-radius: 4px; border: 1px solid #DDD; box-shadow: -1px -1px rgba(120,120,120,0.15) inset } .prgbg small { position: relative; top: -5px; padding: 0 6px; color: #999 } #prgbg1s, #prgbg2s { margin-top: -14px; background: transparent; border: none; box-shadow: none } .prgbar { height: 15px; display: block; position: relative; top: -16px; left: 1px; background: rgba(100,100,100,0.35); border-radius: 3px; box-shadow: 1px 1px rgba(0,0,0,0.15) inset } #prgbar1, #prgbar2, #prgbar3 { max-width: calc(100% - 3px); } /* ไม่ให้ตอน 100% ออกนอกกรอบ */ #prgbar1 { background: #0AA } #prgbar2 { background: #F17650 } #prgbar3 { background: #3F97E4 } .prgbar small { position: absolute; top: -2px; right: 0; padding: 0 6px; color: #FFF } #prgbar1s small, #prgbar2s small { color: #F8F8F8 } /*** loading spinner (ใช้ทั่วทั้งเว็บ เวลาจะกดเข้า class) ***/ #spinner-wrap { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 2000; display: none; animation: fadeIn .15s; background: rgba(0,8,18,0.6) no-repeat center center; -webkit-backdrop-filter: blur(2.5px); backdrop-filter: blur(2.5px) } #spinner { position: relative; top: 40vh } #spinner h4 { display: block; margin-top: 10px; font-size: 1.5em; color: #FFF; text-shadow: #456 1px 1px 1px } #spinner .bounce { display: inline-block; width: 18px; height: 18px; border-radius: 100%; box-shadow: 1px 1px 1px #456; background-color: #4CC; animation: bouncedelay 1.2s infinite ease-in-out both } #spinner #bounce1 { animation-delay: -0.32s } #spinner #bounce2 { animation-delay: -0.16s } @keyframes bouncedelay { 0%, 80%, 100% { transform: scale(0) } 40% { transform: scale(1.0) } } /*********** จบ ************/
*ชื่อ
นวย (admin)
*รหัส
จัดการแก้ไข
ขอเริ่มใหม่..
ค้นหาในเว็บบอร์ด
เริ่มค้น!
ร่วมสนับสนุนอีบุ๊ค
พรีเทสต์ วิชาสามัญ (เก่า)
พรีเทสต์ PAT1 (เก่า)
ติดตามแฟนเพจ
Math E-Book fanpage
ขอขอบคุณ
PHP
8.2.28,
PDF.js
,
MathJax
,
StyleShout
,
SVG-icon
,
f0nt
,
GoogleFonts
,
Acrobat
,
Foxit
,
Okular
,
SumatraPDF
• เอกสาร Math E-Book (คณิตศาสตร์ ม.ปลาย), Math E-Book ฉบับเข้มข้น, O-NET สนทนา ในส่วนเนื้อหา ตัวอย่าง และเฉลย เป็นผลงานเรียบเรียงของ
คณิต มงคลพิทักษ์สุข
• ทุกผลงานได้รับการคุ้มครองจาก พรบ. ลิขสิทธิ์ 2537 และ 2558
•
เผยแพร่เพื่อการอ่านส่วนบุคคลเท่านั้น
และไม่อนุญาตให้แก้ไขเปลี่ยนแปลงส่วนใดทั้งสิ้น
• การใช้หรือดัดแปลงเพื่อประกอบการสอน มอบสิทธิ์เฉพาะสมาชิก
MathHubb Premium
เท่านั้น