Template:NewsArticle.css: Difference between revisions
From TwogPedia
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
. | .news-meta-container, | ||
.news-meta-content-twogpedia { | |||
padding: 10px 0; | |||
border-bottom: 2px solid #77737A; | |||
color: #C1C1CD !important; | |||
} | |||
.news-category-meta { | |||
margin-right: 20px; | |||
margin-bottom: 5px; | |||
} | |||
#first-container-news-twogpedia { | |||
margin-top: 10px; | |||
} | |||
.news-image-container-twogpedia { | |||
width: 100%; | |||
} | |||
#first-title-twogpedia { | |||
color: #ECEBEB; | |||
font-weight: 500; | |||
line-height: 23.4px; | |||
text-align: left; | |||
} | |||
.news-image-twogpedia img { | |||
width: 100%; | |||
height: auto; | |||
border-radius: 15px; | |||
border: 2px solid #77737A; | |||
box-sizing: border-box; | |||
} | } | ||
Line 10: | Line 39: | ||
gap: 0.75rem; | gap: 0.75rem; | ||
height: 100%; | height: 100%; | ||
} | } | ||
Line 30: | Line 55: | ||
max-width: 100%; | max-width: 100%; | ||
height: auto; | height: auto; | ||
} | |||
.tag-container { | |||
margin: 20px 0; | |||
} | |||
.tag-links { | |||
display: inline-block; | |||
background-color: #19191E; | |||
border-radius: 9px; | |||
padding: 5px 10px; | |||
margin: 5px; | |||
} | |||
.tag-links a { | |||
color: white; | |||
font-weight: bold; | |||
text-decoration: none; | |||
} | |||
.tag-links a:visited, | |||
.tag-links a:hover, | |||
.tag-links a:active { | |||
color: white; | |||
} | |||
.last-container-news-twogpedia { | |||
flex-wrap: wrap; | |||
display: flex; | |||
justify-content: space-between; | |||
align-items: center; | |||
width: 100%; | |||
margin-bottom: 5px; | |||
} | |||
.right-last-container-news-twogpedia { | |||
display: flex; | |||
flex-direction: row; | |||
align-items: center; | |||
gap: 10px; | |||
} | |||
.icon-container-news-twogpedia { | |||
display: inline-flex; | |||
align-items: center; | |||
justify-content: center; | |||
padding: 10px 15px; | |||
border-radius: 8px; | |||
background-color: #19191E; | |||
margin-right: 20px; | |||
border: none; | |||
cursor: pointer; | |||
font-weight: 700; | |||
font-size: 11px; | |||
color: #C1C1CD; | |||
line-height: 27.38px; | |||
text-align: center; | |||
} | |||
.icon-container-news-twogpedia:last-child { | |||
margin-right: 0; | |||
} | |||
.icon-container-sources { | |||
display: inline-flex; | |||
flex-wrap: nowrap; | |||
gap: 10px; | |||
padding: 5px; | |||
background-color: #19191E; | |||
border-radius: 8px; | |||
margin-bottom: 5px; | |||
} | |||
.icon-container-sources img { | |||
width: 32px; | |||
height: 32px; | |||
border-radius: 8px; | |||
padding: 5px; | |||
} | |||
.tag-container b { | |||
color: #C1C1CD !important; | |||
} | |||
.last-container-news-twogpedia b { | |||
color: #C1C1CD !important; | |||
} | |||
.right-last-container-news-twogpedia b { | |||
color: #C1C1CD !important; | |||
} | |||
.tag-links a { | |||
transition: filter 0.3s ease; | |||
cursor: pointer; | |||
} | |||
.tag-links a:hover, | |||
.tag-links a:active { | |||
filter: grayscale(100%) brightness(50%) contrast(110%); | |||
} | |||
.icon-container-news-twogpedia a img { | |||
transition: filter 0.3s ease; | |||
cursor: pointer; | |||
} | |||
.icon-container-news-twogpedia a img:hover, | |||
.icon-container-news-twogpedia a img:active { | |||
filter: grayscale(100%) brightness(50%) contrast(110%); | |||
} | |||
.icon-container-news-twogpedia img { | |||
transition: filter 0.3s ease; | |||
cursor: pointer; | |||
} | |||
.icon-container-news-twogpedia img:hover, | |||
.icon-container-news-twogpedia img:active { | |||
filter: grayscale(100%) brightness(50%) contrast(110%); | |||
} | |||
.icon-container-news-twogpedia:hover { | |||
color: #ECEBEB; | |||
} | } | ||
@media only screen and ( min-width: 699px ) { | @media only screen and ( min-width: 699px ) { | ||
.news__grid { | .news__grid { | ||
display: grid; | |||
grid-template-columns: 2.3fr 1fr; | |||
margin: 50px 30px; | |||
gap: 2rem; | |||
} | } | ||
#first-title-twogpedia { | |||
font-size: 24px; | |||
margin: 20px 0; | |||
} | |||
.news__grid > div:last-child { | |||
border-left: 1px solid #77737A; | |||
padding-left: 20px; | |||
} | |||
.news-content { | |||
display: none; | |||
} | |||
.news__grid__mobile { | |||
display: none; | |||
} | |||
.related__news__container h3, .news__grid > div > p { | |||
margin-top: 0; | |||
color: white; | |||
} | |||
} | |||
@media only screen and ( max-width: 699px ) { | |||
.news__grid__mobile { | |||
display: flex; | |||
flex-direction: column; | |||
gap: 2rem; | |||
} | |||
.news__grid__mobile { | |||
width: 100%; | |||
} | |||
#first-title-twogpedia { | |||
margin-top: 20px; | |||
} | |||
.news-meta-content-twogpedia p { | |||
font-size: 12px; | |||
} | |||
.tag-container { | |||
margin: 0; | |||
font-size: 12px; | |||
} | |||
.left-last-container-news-twogpedia { | |||
margin: 20px 0; | |||
font-size: 12px; | |||
} | |||
.last-container-news-twogpedia { | |||
display: flex; | |||
max-width: 100%; | |||
font-size: 12px; | |||
} | |||
.icon-container-news-twogpedia { | |||
display: flex; | |||
} | |||
.right-last-container-news-twogpedia { | |||
width: 100%; | |||
max-width: 100%; | |||
box-sizing: border-box; | |||
font-size: 12px; | |||
} | |||
.icon-container-news-twogpedia img { | |||
max-width: 100%; | |||
height: auto; | |||
} | |||
.news__grid { | |||
display: none; | |||
} | |||
.related__news__container h3, .news__grid__mobile > div > p { | |||
margin-top: 0; | |||
color: white; | |||
} | |||
.tag-container { | |||
margin-top: 10px; | |||
} | |||
.tag-links a { | |||
color: #77737A; | |||
} | |||
.icon-container-news-twogpedia img { | |||
width: 12px; | |||
height: 12px; | |||
} | |||
.last-container-news-twogpedia { | |||
display: flex; | |||
justify-content: space-between; | |||
align-items: center; | |||
gap: 1rem; | |||
flex-wrap: wrap; | |||
} | |||
.left-last-container-news-twogpedia { | |||
flex: 1; | |||
} | |||
.right-last-container-news-twogpedia { | |||
flex: 1; | |||
text-align: right; | |||
} | |||
.left-last-container-news-twogpedia { | |||
flex: 1; | |||
} | |||
.icon-container-news-twogpedia { | |||
padding: 0 4px !important; | |||
margin-right: 0 !important; | |||
border-radius: 6px !important; | |||
} | |||
.icon-container-sources img { | |||
width: 24px !important; | |||
height: 24px !important; | |||
} | |||
} | } |
Latest revision as of 02:33, 23 April 2025
.news-meta-container,
.news-meta-content-twogpedia {
padding: 10px 0;
border-bottom: 2px solid #77737A;
color: #C1C1CD !important;
}
.news-category-meta {
margin-right: 20px;
margin-bottom: 5px;
}
#first-container-news-twogpedia {
margin-top: 10px;
}
.news-image-container-twogpedia {
width: 100%;
}
#first-title-twogpedia {
color: #ECEBEB;
font-weight: 500;
line-height: 23.4px;
text-align: left;
}
.news-image-twogpedia img {
width: 100%;
height: auto;
border-radius: 15px;
border: 2px solid #77737A;
box-sizing: border-box;
}
.related__news__container {
display: flex;
flex-direction: column;
gap: 0.75rem;
height: 100%;
}
.related__news {
display: flex;
flex-direction: column;
gap: 2rem;
height: 100%;
}
.related__article {
position: relative;
}
.related__article img {
max-width: 100%;
height: auto;
}
.tag-container {
margin: 20px 0;
}
.tag-links {
display: inline-block;
background-color: #19191E;
border-radius: 9px;
padding: 5px 10px;
margin: 5px;
}
.tag-links a {
color: white;
font-weight: bold;
text-decoration: none;
}
.tag-links a:visited,
.tag-links a:hover,
.tag-links a:active {
color: white;
}
.last-container-news-twogpedia {
flex-wrap: wrap;
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
margin-bottom: 5px;
}
.right-last-container-news-twogpedia {
display: flex;
flex-direction: row;
align-items: center;
gap: 10px;
}
.icon-container-news-twogpedia {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 10px 15px;
border-radius: 8px;
background-color: #19191E;
margin-right: 20px;
border: none;
cursor: pointer;
font-weight: 700;
font-size: 11px;
color: #C1C1CD;
line-height: 27.38px;
text-align: center;
}
.icon-container-news-twogpedia:last-child {
margin-right: 0;
}
.icon-container-sources {
display: inline-flex;
flex-wrap: nowrap;
gap: 10px;
padding: 5px;
background-color: #19191E;
border-radius: 8px;
margin-bottom: 5px;
}
.icon-container-sources img {
width: 32px;
height: 32px;
border-radius: 8px;
padding: 5px;
}
.tag-container b {
color: #C1C1CD !important;
}
.last-container-news-twogpedia b {
color: #C1C1CD !important;
}
.right-last-container-news-twogpedia b {
color: #C1C1CD !important;
}
.tag-links a {
transition: filter 0.3s ease;
cursor: pointer;
}
.tag-links a:hover,
.tag-links a:active {
filter: grayscale(100%) brightness(50%) contrast(110%);
}
.icon-container-news-twogpedia a img {
transition: filter 0.3s ease;
cursor: pointer;
}
.icon-container-news-twogpedia a img:hover,
.icon-container-news-twogpedia a img:active {
filter: grayscale(100%) brightness(50%) contrast(110%);
}
.icon-container-news-twogpedia img {
transition: filter 0.3s ease;
cursor: pointer;
}
.icon-container-news-twogpedia img:hover,
.icon-container-news-twogpedia img:active {
filter: grayscale(100%) brightness(50%) contrast(110%);
}
.icon-container-news-twogpedia:hover {
color: #ECEBEB;
}
@media only screen and ( min-width: 699px ) {
.news__grid {
display: grid;
grid-template-columns: 2.3fr 1fr;
margin: 50px 30px;
gap: 2rem;
}
#first-title-twogpedia {
font-size: 24px;
margin: 20px 0;
}
.news__grid > div:last-child {
border-left: 1px solid #77737A;
padding-left: 20px;
}
.news-content {
display: none;
}
.news__grid__mobile {
display: none;
}
.related__news__container h3, .news__grid > div > p {
margin-top: 0;
color: white;
}
}
@media only screen and ( max-width: 699px ) {
.news__grid__mobile {
display: flex;
flex-direction: column;
gap: 2rem;
}
.news__grid__mobile {
width: 100%;
}
#first-title-twogpedia {
margin-top: 20px;
}
.news-meta-content-twogpedia p {
font-size: 12px;
}
.tag-container {
margin: 0;
font-size: 12px;
}
.left-last-container-news-twogpedia {
margin: 20px 0;
font-size: 12px;
}
.last-container-news-twogpedia {
display: flex;
max-width: 100%;
font-size: 12px;
}
.icon-container-news-twogpedia {
display: flex;
}
.right-last-container-news-twogpedia {
width: 100%;
max-width: 100%;
box-sizing: border-box;
font-size: 12px;
}
.icon-container-news-twogpedia img {
max-width: 100%;
height: auto;
}
.news__grid {
display: none;
}
.related__news__container h3, .news__grid__mobile > div > p {
margin-top: 0;
color: white;
}
.tag-container {
margin-top: 10px;
}
.tag-links a {
color: #77737A;
}
.icon-container-news-twogpedia img {
width: 12px;
height: 12px;
}
.last-container-news-twogpedia {
display: flex;
justify-content: space-between;
align-items: center;
gap: 1rem;
flex-wrap: wrap;
}
.left-last-container-news-twogpedia {
flex: 1;
}
.right-last-container-news-twogpedia {
flex: 1;
text-align: right;
}
.left-last-container-news-twogpedia {
flex: 1;
}
.icon-container-news-twogpedia {
padding: 0 4px !important;
margin-right: 0 !important;
border-radius: 6px !important;
}
.icon-container-sources img {
width: 24px !important;
height: 24px !important;
}
}
No categories