pages/htdocs/assets/css/post.css
2023-04-02 17:31:07 +09:00

692 lines
10 KiB
CSS

h1 {
position: relative;
padding: .3em;
text-align: center;
color: #e60 !important;
}
h1::before,
h1::after {
position: absolute;
left: 0;
content: '';
width: 100%;
height: 6px;
box-sizing: border-box;
}
h1::before {
top: 0;
border-top: 2px solid #f80;
border-bottom: 1px solid #f80;
}
h1::after {
bottom: 0;
border-top: 1px solid #f80;
border-bottom: 2px solid #f80;
}
h2 {
position: relative;
padding: .1em .3em .1em 1.8em;
background: #90CAF9;
border-radius: 4px;
color: white !important;
}
h2:before,
h2:after {
content: "";
position: absolute;
display: block;
}
h2:before {
top: -0.1em;
left: 0.5em;
width: 20px;
height: 23px;
padding: 5px 0 0 0;
background: #1976D2;
text-align: center;
}
h2:after {
top: .35em;
left: .5em;
width: 0;
height: 0;
border: 10px solid;
border-color: transparent #1976D2;
}
h3 {
color: brown !important;
position: relative;
padding: .1em .3em .1em 1.6em;
}
h3::before,
h3::after {
position: absolute;
content: "□";
width: 4px;
height: 4px;
color: #FBC02D;
}
h3::before {
left: 0;
top: 0;
}
h3::after {
left: 5.5px;
top: 7.5px;
}
#content a {
text-decoration: none !important;
color: royalblue !important;
}
#content a:hover {
text-decoration: underline !important;
color: royalblue !important;
}
figcaption {
color: dimgray !important;
width: fit-content;
margin: auto;
}
#content p {
max-width: 800px;
margin-left: auto;
margin-right: auto;
}
#content ul,
ol {
max-width: 800px;
margin-left: auto;
margin-right: auto;
font-size: unset;
}
#content ul li {
list-style: disc;
padding-left: unset;
margin: auto;
}
#content ol li {
list-style: decimal;
padding-left: unset;
margin: auto;
}
#content li::before {
content: unset;
}
#content li :last-child {
margin-bottom: unset;
}
#content li :first-child {
margin-top: unset;
}
/* Youtube Embbed Video */
figure.youtube {
margin: auto;
width: 100%;
aspect-ratio: 16 / 9;
max-width: 560px;
}
figure.youtube iframe {
width: 100%;
height: 100%;
}
/* floatbox */
.floatbox img {
margin: 0;
}
.floatbox {
margin: 8px auto !important;
}
.balloon,
.balloon_right {
width: 100%;
margin-top: 0.5em !important;
overflow: hidden;
}
.balloon .faceicon {
float: left;
margin-right: -90px;
width: 80px;
}
.balloon .faceicon img,
.balloon_right .faceicon_right img {
width: 100%;
height: auto;
border: solid 3px #d7ebfe;
}
.balloon .faceicon p,
.balloon_right .faceicon_right p {
text-align: center;
top: -10px;
position: relative;
}
.balloon .chatting,
.balloon_right .chatting {
width: 100%;
}
.says {
position: relative;
margin: 5px 0 0 105px;
padding: 17px 13px;
border-radius: 12px;
background: #FFF;
border: solid 3px #d7ebfe;
}
.says:before {
content: "";
position: absolute;
top: 34px;
left: -20px;
margin-top: -16px;
border: 12px solid transparent;
border-right: 12px solid #FFF;
z-index: 2;
}
.says:after {
content: "";
display: inline-block;
position: absolute;
top: 18px;
left: -24px;
border: 12px solid transparent;
border-right: 12px solid #d7ebfe;
}
.says p,
.says_right p {
margin: 0;
padding: 0;
}
.balloon_right .faceicon_right {
float: right;
margin-right: 0px;
width: 80px;
}
.says_right {
position: relative;
margin: 5px 105px 0 0px;
padding: 17px 13px;
border-radius: 12px;
background: #FFF;
border: solid 3px #d7ebfe;
}
.says_right:before {
content: "";
position: absolute;
top: 34px;
right: -20px;
margin-top: -16px;
border: 12px solid transparent;
border-left: 12px solid #FFF;
z-index: 2;
}
.says_right:after {
content: "";
display: inline-block;
position: absolute;
top: 18px;
right: -24px;
border: 12px solid transparent;
border-left: 12px solid #d7ebfe;
}
/* costomize */
.faceicon img,
.faceicon_right img {
margin: 0;
border-radius: 50%;
background-color: white;
border: solid 2px #d7ebfe !important;
}
.balloon .faceicon,
.balloon_right .faceicon_right {
width: 100px;
}
.balloon,
.balloon_right {
margin: 0 auto;
max-width: 800px;
}
.says {
margin: 15px 0 0 115px;
border: solid 2px #c99;
background-color: #fed;
width: fit-content;
padding: 17px 24px;
}
.says:before {
left: -21px;
border-right: 12px solid #fed;
}
.says:after {
border-right: 12px solid #c99;
}
.says_right {
margin: 15px 115px 0 auto;
/* text-align: right; */
border: solid 2px #c99;
background-color: #fee;
width: fit-content;
padding: 17px 24px;
}
.says_right:before {
right: -21px;
border-left: 12px solid #fee;
}
.says_right:after {
border-left: 12px solid #c99;
}
.says_right p {
width: fit-content !important;
margin: auto !important;
margin-right: 0 !important;
}
.faceicon p,
.faceicon_right p {
font-size: small;
margin: 0;
top: 0 !important;
}
.tamathink {
position: relative;
margin: 15px 0 0 145px;
/* padding: 17px 13px; */
border-radius: 12px;
background: #fed;
border: solid 2px #edc;
width: fit-content;
padding: 17px 24px;
}
.tamathink p {
margin: 0;
padding: 0;
color: gray;
}
.think-l-bal-s {
/* display: inline-block; */
position: relative;
left: 96px;
top: 28px;
width: 12px;
height: 12px;
border-radius: 50%;
background: #fed;
border: solid 2px #edc;
float: left;
}
.think-l-bal-l {
/* display: inline-block; */
position: relative;
left: 100px;
top: 22px;
width: 18px;
height: 18px;
border-radius: 50%;
background: #fed;
border: solid 2px #edc;
float: left;
}
summary.blockprogram {
background-color: seagreen;
}
summary.lesson {
background-color: royalblue;
}
summary {
cursor: pointer;
color: white;
margin: auto;
padding: .5em 1em;
}
details.lesson {
margin: 1em auto;
padding: 0;
max-width: 800px;
}
details.lesson div.lesson {
padding: .5em 1em;
}
details.lesson[open] div.lesson {
background-color: white;
border: royalblue 1px solid;
border-top: 0;
animation: fadeIn 0.5s ease;
}
/* @keyframes fadeIn {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
} */
details.lesson[open] div.slide {
padding: 0;
margin: 0;
animation: slideIn 0.5s ease;
}
@keyframes slideIn {
0% {
transform: translateX(-10px);
}
100% {
transform: none;
}
}
/* Marker */
span.mfy {
background: linear-gradient(transparent 60%, yellow 60%) !important;
}
span.mfr {
background: linear-gradient(transparent 60%, pink 60%) !important;
}
span.mfb {
background: linear-gradient(transparent 60%, aqua 60%) !important;
}
span.mfg {
background: linear-gradient(transparent 60%, lightgreen 60%) !important;
}
/* Blogcard */
div.card {
max-width: 800px;
margin: 1em auto 2em;
}
.blogcard {
display: grid;
grid-gap: .3rem 1rem;
align-content: start;
max-width: 35rem;
max-height: 100px;
color: #2c2d30;
line-height: normal;
background-color: white;
width: fit-content;
position: relative;
top: 0;
transition: all .3s linear !important;
border-radius: .25rem;
overflow: hidden;
}
.blogcard:hover {
top: -3px !important;
box-shadow: 2px 3px 3px rgba(0, 0, 0, 0.3);
}
.blogcard:hover img {
opacity: 0.7;
transition: all .3s linear !important;
}
.blogcard::before {
content: "";
grid-column: 1 / 2;
grid-row: 1 / 4;
width: .25rem;
height: 100%;
background: #e3e4e6;
/* border-radius: .2rem; */
}
.blogcard>* {
grid-column: 2 / 3;
}
/* .blogcard__heading,
.blogcard__description {
margin: 0 !important;
} */
.blogcard__heading {
line-height: 1.0 !important;
margin: 0 !important;
}
.blogcard__description {
font-size: small;
margin: 0 !important;
}
.blogcard__link {
text-decoration: none !important;
color: #3081b7 !important;
}
.blogcard__image {
grid-column: 3 / 4;
grid-row: 1 / 4;
/* align-self: center; */
width: 100px;
height: 100px;
object-fit: cover;
margin: 0 !important;
border-radius: 0 .25rem .25rem 0;
}
.blogcard__logo {
max-width: 1rem;
height: auto;
margin: 4px 0 0 0 !important;
}
.blogcard__publisher {
padding-top: 3px;
}
.blogcard__meta {
font-size: small;
grid-row: 1 / auto;
display: grid;
grid-template-columns: max-content 1fr;
grid-gap: .25rem;
color: #a1a1a8;
font-weight: bold;
padding-top: 0px;
margin-top: 2px !important;
}
.blogcard+.blogcard {
margin-block-start: 2rem;
}
/* アイコン付きボックス */
.iconbox {
position: relative;
margin: auto;
margin-top: 44px !important;
padding: 0.5em 1em;
border: solid 3px deeppink;
max-width: 800px;
}
.iconbox .box-title {
position: absolute;
display: inline-block;
top: -40px;
left: -3px;
padding: 3px 9px;
height: 40px;
line-height: 25px;
font-size: 32px;
background: deeppink;
color: #ffffff;
font-weight: bold;
border-radius: 5px 5px 0 0;
}
.iconbox p {
margin: 0;
padding: 0;
}
th,
td {
border: solid 1px;
border-color: lightgray;
padding: 10px !important;
font-size: initial;
}
table {
max-width: 800px;
margin: auto;
border-collapse: collapse;
}
blockquote {
max-width: 800px;
margin: auto;
}
div.imgbox {
max-width: 600px;
margin: 24px auto;
padding: 16px;
border-radius: 16px;
border: white solid 4px;
}
div.imgbox p {
font-size: larger;
margin: auto;
width: fit-content;
font-weight: bold;
color: magenta;
}
p.tsukkomi {
font-size: small;
color: lightgray;
margin-right: 0 !important;
width: fit-content;
}
.box_stripe {
max-width: 800px;
margin: 24px auto;
padding: 1em 2em;
background: -webkit-repeating-linear-gradient(-45deg, #f0f8ff, #f0f8ff 3px, #e9f4ff 3px, #e9f4ff 7px);
background: repeating-linear-gradient(-45deg, #f0f8ff, #f0f8ff 3px, #e9f4ff 3px, #e9f4ff 7px);
}
.box_stripe p {
margin: 0;
padding: 0;
}
img.inline {
display: inline-block;
width: auto;
margin: 0;
vertical-align: top;
}
span.tsubuyaki {
font-size: small;
color: gray;
}
pre {
max-width: 800px;
margin: 0 auto;
}
figure.center {
margin: auto;
width: fit-content;
}
figure.center figcaption {
margin: 8px auto auto;
}
#disqus_thread {
padding-top: 4px;
border-top-style: solid;
border-top-color: #eee;
border-top-width: 2px;
}
code::before {
content: '' !important;
}
code::after {
content: '' !important;
}
code {
background-color: gainsboro;
padding: 2px 6px;
border-radius: 3px;
}