SVNからのミラー
This commit is contained in:
73
public/static/style-news-article.css
Normal file
73
public/static/style-news-article.css
Normal file
@@ -0,0 +1,73 @@
|
||||
.thumbnail {
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
max-height: 300px;
|
||||
overflow: hidden;
|
||||
margin-bottom: 20px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.thumbnail > img {
|
||||
width: 100%;
|
||||
height: 300px;
|
||||
object-fit: cover;
|
||||
object-position: center;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.thumbnail.top > img {
|
||||
object-position: top;
|
||||
}
|
||||
|
||||
.thumbnail.bottom > img {
|
||||
object-position: bottom;
|
||||
}
|
||||
|
||||
.meta {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.meta-author, .meta-date, .meta-category {
|
||||
display: inline-block;
|
||||
margin: 4px;
|
||||
padding: 8px;
|
||||
border: 1px solid #ea79d8;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.meta-author, .meta-date {
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
.meta-author {
|
||||
background-color: #c016c6;
|
||||
}
|
||||
|
||||
.meta-date {
|
||||
background-color: #550f75;
|
||||
color: #fcfcfc;
|
||||
}
|
||||
|
||||
.meta-category {
|
||||
background-color: #ae6bdb;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
border-bottom: 1px solid #ea79d8;
|
||||
}
|
||||
|
||||
/* 死ねー */
|
||||
@media screen and (max-width: 480px) {
|
||||
.news-meta {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 0.3rem;
|
||||
}
|
||||
|
||||
.meta-date, .meta-author, .meta-category {
|
||||
width: 90%;
|
||||
margin: 4px auto;
|
||||
text-align: center;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user