News-website/CSS/index.css

1658 lines
58 KiB
CSS
Raw Normal View History

2020-08-30 12:24:11 +00:00
body{
display: grid;
grid-template-rows: 65px 1fr;
2020-09-19 22:44:09 +00:00
overflow: auto;
2020-10-07 07:36:52 +00:00
position: relative;
2020-08-30 12:24:11 +00:00
}
2020-09-23 19:12:45 +00:00
/* Navigation Bar */
2020-08-30 12:24:11 +00:00
.navigation-bar{
grid-row: 1/2;
grid-template-columns: 1fr 730px 1fr;
background-color: var(--bg);
box-shadow: 0px 1px 8px var(--font-medium);
border: none;
width: 100%;
height: 65px;
z-index: 0;
}
/** Navigation Bar Left Side */
.nav-left-side{
grid-column: 1/2;
padding-left: 12px;
}
/** Menu Burger Icon */
.menu-icon{
width: 48px;
height: 48px;
margin-right: 5px;
}
.menu-icon:hover{
background-color: var(--hover-light);
}
.menu-burger-icon{
width: 18px;
height: 2px;
background-color: var(--font-dark);
border-radius: 1px;
}
.menu-burger-icon::before,
.menu-burger-icon::after{
width: 18px;
height: 2px;
background-color: var(--font-dark);
content: '';
position: absolute;
border-radius: 1px;
}
2020-09-23 19:12:45 +00:00
.menu-burger-icon::before{ transform: translateY(-5px); }
.menu-burger-icon::after{ transform: translateY(5px);}
2020-08-30 12:24:11 +00:00
/** Logo */
.logo{
text-decoration: none;
font-size: 1.35rem;
color: var(--font-dark);
}
/** Main Search Input */
.nav-search{
grid-column: 2/3;
padding: 0 12px;
}
.main-search-bar-input-div{
width: 100%;
grid-template-columns: 48px 1fr 48px;
z-index: 0;
}
2020-09-23 19:12:45 +00:00
.main-search-input {
display: auto;
2020-08-30 12:24:11 +00:00
grid-column: 1/4;
grid-row: 1/2;
height: 48px;
width: 100%;
border-radius: 6px;
background-color: var(--hover-light);
border: none;
padding-left: 50px;
padding-right: 50px;
font-size: 1.1rem;
outline-width: 0;
color: var(--userTextInput);
box-sizing: border-box;
}
.main-search-input::placeholder{
color: var(--font-light);
}
.main-search-input:focus{
background-color: var(--bg);
box-shadow: 2px 2px 1px var(--hover-light),
1px 1px 1px var(--hover-light) inset;
}
/** Search Bar Icon */
i{
color: var(--font-medium);
}
.search-icon-figure{
grid-column: 1/2;
grid-row: 1/2;
width: 100%;
height: 100%;
}
.search-icon{
width: 40px;
height: 40px;
}
.search-icon:hover{
background-color: var(--hover-medium);
}
.extra-option-icon{
grid-row: 1/2;
grid-column: 3/4;
width: 100%;
border-radius: 6px;
}
.extra-option-icon::after{
content: '';
border-left: 6px solid transparent;
border-right: 6px solid transparent;
border-top: 7px solid var(--font-dark);
filter: brightness(1.3);
}
/** Extra Options */
.extra-search,.search-words {
background-color: var(--bg);
border: none;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
}
.extra-search {
grid-template-rows: 0.8fr 1fr 1fr 1fr 0.8fr 0.7fr;
}
.extra-search-options {
--value: 530%;
padding: 0 20px 20px 20px;
bottom: calc((var(--value) * (-1) - 20px));
width: calc(100% - 64px);
height: var(--value);
box-shadow: 0 1px 5px 0 var(--border-light),
0 1px 2px 0 var(--border-dark);
}
.search-words {
width: calc(100% - 24px);
height: fit-content;
top: 100%;
box-shadow: 2px 2px 1px var(--hover-light),
1px 0px 1px var(--hover-light) inset;
}
.extra-search-options div {
grid-template-columns: 115px 1fr;
2020-08-30 12:24:11 +00:00
grid-template-rows: 1fr;
}
.extra-search-options .extra-search-options-div {
padding: 10px 0;
}
.extra-search-options dt {
font-weight: 300;
}
.extra-search-options div label {
display: flex;
align-items: center;
}
.underline-input-animation {
grid-column: 2/3;
bottom: 1px;
}
.extra-search-options input:active,
.extra-search-options input:focus {
border: none;
transition: ease-in-out all .25s;
}
.extra-search-options input:active + .underline-input-animation,
.extra-search-options input:focus + .underline-input-animation {
width: 100%;
}
.extra-option-select {
width: 20%;
height: 70%;
margin: auto 0;
padding-left: 10px ;
font-size: 0.8rem;
background-color: transparent;
border: none;
outline: none;
-webkit-appearance: none;
-moz-appearance: none;
box-shadow: none;
}
.option-icon-select {
top: calc(50% - 3px);
bottom: calc(50% - 3px);
left: 85%;
pointer-events: none;
}
.option-icon-select::after {
content: '';
border-left: 4px solid transparent;
border-right: 4px solid transparent;
border-top: 6px solid var(--font-dark);
filter: brightness(1.3);
}
.extra-search-options input {
width: 100%;
border: none;
border-bottom: 1px solid var(--border-input);
background-color: transparent;
outline-width: 0px;
font-size: 1.07rem;
}
.extra-option-button-div {
justify-content: flex-end;
}
.extra-option-btn {
height: 100%;
width: 68px;
border: none;
font-size: 0.89rem;
outline: none;
padding: 8px;
border-radius: 6px;
}
.ext-opt-submit {
background-color: var(--blue-medium);
color: var(--bg);
}
.ext-opt-submit-disable {
background-color: var(--shadow) !important;
color: var(--bg) !important;
cursor: default !important;
}
.ext-opt-reset {
margin-right: 12px;
color: var(--font-dark);
background-color: var(--bg);
}
.extra-search-options,
.extra-option-label1,
.extra-option-label2,
.extra-option-label3,
.extra-option-label4 {
color: var(--font-dark);
font-weight: normal;
font-size: 0.9rem;
}
.extra-search-options .select-div {
width: 80px;
}
.time-select {
width: 120%;
padding: 0;
top: 0;
left: 0;
box-shadow: 0px 1px 6px 2px var(--shadow);
}
.time-select div {
font-size: 0.87rem;
padding: 8px;
}
.search-words div {
height: 2rem;
padding: 0 20px;
}
.search-words div.active {
background-color: var(--hover-light);
}
.search-words div:last-child {
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
}
.search-words span {
margin: auto 0;
}
.search-words hr {
border-top: 1px solid var(--hover-medium);
left: 0;
right: 0;
top: 0;
width: 96%;
margin: auto;
}
/** Navigation Right Side */
2020-09-30 18:46:56 +00:00
.nav-right-side > * { float: right; }
2020-08-30 12:24:11 +00:00
.link {
padding: 9px 13px;
margin-right: 15px;
}
.login {
background-color: var(--blue-medium);
border-radius: 7px;
color: var(--bg);
}
2020-09-30 18:46:56 +00:00
.login:hover { filter: brightness(1.06); }
2020-08-30 12:24:11 +00:00
2020-09-30 18:46:56 +00:00
.navigation-profile-img { --times: 2.2; }
2020-08-30 12:24:11 +00:00
.first-profile-div{
width: 2.8rem;
height: 2.8rem;
margin-right: 15px;
}
2020-09-30 18:46:56 +00:00
.first-profile-div:hover{ background-color: var(--hover-light); }
.first-profile-div-active{ background-color: var(--hover-medium); }
.tooltiptext-name { color: var(--hover-dark); }
2020-08-30 12:24:11 +00:00
/** Profile Options */
2020-09-30 18:46:56 +00:00
.profile-extra-options {
right: 0.75rem;
top: 93%;
min-width: 350px;
min-height: 380px;
border-radius: 6px;
background-color: var(--bg);
box-shadow: 1px 1px 2px 0px var(--border-medium),
1px 1px 1px 0px var(--border-medium) inset;
}
.profile-extra-options .top-div {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
padding: 20px;
}
.top-div .img-container {
width: 100%;
padding-bottom: 10px;
}
img.imga {
width: 100%;
height: 100%;
border-radius:50%;
}
.top-div .img-middle {
position: relative;
width: fit-content;
margin: auto;
}
.nav-right-side .outter-container {
padding: 4px;
margin-right: 15px;
}
.nav-right-side .outter-container:hover { background-color: var(--hover-light); }
.nav-right-side .outter-container.active { background-color: var(--hover-medium); }
.img {
position: relative;
border-radius: 50%;
width: var(--num);
height: var(--num);
/* background: url('https://miro.medium.com/max/1200/1*mk1-6aYaf_Bes1E3Imhc0A.jpeg');
cursor: pointer; */
}
.img-settings {
background-repeat: no-repeat;
background-size: cover;
}
.img.big {
--num: 5.5rem;
--letter: 2.75rem;
cursor: pointer;
}
.img.small {
--num: 2.25rem;
--letter: 1rem;
cursor: pointer;
}
.img .letter {
position: absolute;
left: calc(50% - 1.5rem);
right: calc(50% - 1.5rem);
top: calc(50% - 1.5rem);
bottom: calc(50% - 1.5rem);
width: 3rem;
height: 3rem;
display: flex;
align-items: center;
justify-content: center;
}
.img .letter span{
font-size: var(--letter);
color: var(--bg);
}
.img:hover { filter: brightness(1.1); }
.camera-container {
position: absolute;
bottom: -3px;
right: 0;
background-color: yellow;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
width: 1.25rem;
height: 1.25rem;
padding: 5px;
border: 1px solid var(--border-light);
background-color: var(--bg);
cursor: pointer;
}
.camera-container:hover i{ color: var(--google-blue); }
.top-div .personal-info {
padding: 12px 10px;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
.top-div .full-name,
.top-div .email,
.top-div .manage-button {
width: 100%;
padding: 3px 0;
display: flex;
align-items: center;
justify-content: center;
}
.top-div .full-name { font-size: 1.25rem; }
.top-div .email {
color: var(--font-medium);
font-size: 1rem;
}
.top-div .manage-button .container {
border-radius: 4rem;
border: 1px solid var(--border-light);
width: 80%;
padding: 8px 5px;
margin-top: 1.25rem;
display: flex;
align-items: center;
justify-content: center;
transition: all ease-in-out .15;
}
.top-div .manage-button .container:hover {
cursor: pointer;
background-color: var(--very-light-grey);
}
.top-div .manage-button .container span { color: var(--font-dark); }
.sign-out {
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 15px;
}
.sign-out .button-container {
border: 1px solid var(--border-light);
border-radius: 3px;
min-height: 1.5rem;
width: 10.75rem;
margin: auto;
padding: 5px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}
.sign-out .button-container:hover { background-color: var(--very-light-grey); }
.sign-out .button-container span { color: var(--font-dark); }
.middle-div {
margin-bottom: 1rem;
border-top: 1px solid var(--hover-medium);
border-bottom: 1px solid var(--hover-medium);
display: flex;
justify-content: center;
flex-direction: column;
}
.middle-div .container {
padding: 5px 0;
min-height: 2.5rem;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}
.middle-div .container:hover { background-color: var(--hover-light); }
.middle-div .google,
.middle-div .facebook,
.middle-div .github {
padding: 0 20px;
width: calc(100% - 20px);
display: grid;
grid-template-columns: 50px 1fr;
}
.middle-div .icon {
font-size: 1.5rem;
display: flex;
align-items: center;
justify-content: center;
}
.google .icon { color: var(--google-blue); }
.facebook .icon { color: #4267B2; }
.github .icon { color: var(--font-very-dark); }
.middle-div span {
text-align: left;
display: flex;
align-items: center;
font-size: 0.9rem;
color: var(--font-medium);
}
.profile-extra-options .footer {
min-height: 1.5rem;
display: block;
}
.profile-extra-options .footer .container {
display: flex;
align-items: center;
justify-content: center;
2020-08-30 12:24:11 +00:00
}
2020-09-30 18:46:56 +00:00
.profile-extra-options .footer .container .inner-container {
min-width: 4rem;
display: flex;
2020-08-30 12:24:11 +00:00
}
2020-09-30 18:46:56 +00:00
.profile-extra-options .footer .container .inner-container span {
font-size: 0.78rem;
color: var(--font-light);
padding: 2px 5px;
cursor: pointer;
2020-08-30 12:24:11 +00:00
}
/* Main Content */
2020-08-30 12:24:11 +00:00
main {
grid-row: 2/3;
background-color: var(--bg);
}
.side-bar {
2020-08-30 12:24:11 +00:00
left: 0;
top: 65px;
height: calc(100% - 64px);
2020-08-30 12:24:11 +00:00
width: 17.5rem;
position: fixed;
2020-09-21 17:55:48 +00:00
overflow: scroll;
transition: ease-in-out all .3s;
2020-08-30 12:24:11 +00:00
}
.side-bar-container {
display: flex;
flex-direction: column;
width: inherit;
height: inherit;
}
2020-09-19 22:44:09 +00:00
.side-bar-content {
display: grid;
margin-top: 1rem;
margin-bottom: 1.5rem;
2020-08-30 12:24:11 +00:00
transition: all ease-in-out 0.3s;
}
.side-bar-content .sidebar-category {
2020-08-30 12:24:11 +00:00
display: flex;
align-items: center;
height: 46px;
width: 16.2rem;
cursor: pointer;
flex-grow: 1;
2020-08-30 12:24:11 +00:00
border-top-right-radius: 25px;
border-bottom-right-radius: 25px;
}
.side-bar-content .sidebar-line {
height: 22px;
width: 16.2rem;
display: flex;
align-items: center;
justify-content: center;
2020-08-30 12:24:11 +00:00
}
.side-bar-content .sidebar-line hr {
border-bottom: 1px solid var(--hover-dark);
width: 90%;
2020-08-30 12:24:11 +00:00
}
.side-bar footer {
display: flex;
align-items: center;
font-size: 0.75rem;
margin-top: auto;
}
.side-bar-content div.icon {
margin: 0 1rem 0 1.5rem;
height: 20px;
width: 20px;
display: flex;
align-items: center;
justify-content: center;
2020-08-30 12:24:11 +00:00
}
.side-bar-content a {
2020-08-30 12:24:11 +00:00
color: var(--font-dark);
font-size: 0.9rem;
2020-08-30 12:24:11 +00:00
}
.side-bar-content div.other .text { margin: 0 0.7rem 0 1.5rem; }
.sidebar-category.country {
display: grid;
2020-08-30 12:24:11 +00:00
font-size: 0.9rem;
color: var(--font-dark);
}
.sidebar-country-container > * { padding: 0 0 0 1.5rem; }
.side-bar footer div a { color: var(--font-medium); }
.side-bar footer .text { padding: 1rem 0.5rem; }
.side-bar .about { margin-left: 1.5rem; }
.sidebar-category:hover div a,
.sidebar-category:hover div i,
.sidebar-category:hover span,
.sidebar-category:hover strong {
color: var(--blue-light);
2020-08-30 12:24:11 +00:00
}
.sidebar-category.active { background-color: var(--side-bar-active) !important; }
.sidebar-category.active div a,
.sidebar-category.active div i {
color: var(--blue-light) !important;
2020-08-30 12:24:11 +00:00
}
2020-08-30 20:13:19 +00:00
/** Main Section */
2020-08-30 12:24:11 +00:00
.main-content-section {
2020-09-19 22:44:09 +00:00
max-width: 1176px;
2020-09-23 19:12:45 +00:00
min-width: 220px;
2020-08-30 12:24:11 +00:00
height: 100%;
padding: 20px;
2020-09-19 22:44:09 +00:00
margin: auto;
transition: all ease-in-out .3s;
2020-08-30 20:13:19 +00:00
}
2020-10-07 07:36:52 +00:00
.main-content-section .library {
max-width: 700px !important;
}
2020-09-23 19:12:45 +00:00
.main-content-section.full { width: 760px; }
.main-content-section.full .article-container {
display: flex;
flex-direction: column;
2020-10-07 07:36:52 +00:00
grid-column: 1/13 !important;
padding-bottom: 5rem;
2020-09-23 19:12:45 +00:00
}
.main-content-section.full .main-header {
padding: 2rem 0;
width: inherit;
display: flex;
}
.main-content-section.full .main-header .buttons {
display: flex;
align-items: center;
justify-content: center;
}
.main-content-section.full .main-header .title-container {
display: flex;
align-items: center;
flex-grow: 1;
}
.title-container .title {
margin: 0 1rem;
}
.title-container .title h2 {
font-weight: 500;
font-size: 1.75rem ;
}
.main-content-section.full .main-header .title-container .image-container {
display: flex;
align-items: center;
justify-content: center;
width: 3.5rem;
height: 3.5rem;
background-color: var(--color);
}
.title-container .image-container i {
font-size: 2.25rem;
color: #fefefe;
display: flex;
align-items: center;
justify-content: center;
}
/* Colors */
.sport { --color: rgb(245, 97, 80); }
.health { --color: rgb(224, 49, 49); }
.technology { --color: rgb(18, 130, 235); }
.entertainment { --color: rgb(247, 231, 20); }
.world { --color: var(--light-green); }
.business { --color: rgb(172, 21, 172); }
.covid19 { --color: rgb(66, 64, 64); }
.main-content-container {
height: 100%;
display: grid;
2020-09-21 17:55:48 +00:00
grid-template-columns: repeat(12,minmax(0, 1fr));
grid-gap: 1rem 2rem;
}
2020-10-05 21:45:07 +00:00
.main-content-section.headlines .main-content-container {
grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) 220px;
}
.main-content-section.headlines .main-content-container .article-container { grid-column: 1/9; }
.main-content-section.headlines .main-content-container .main-side-content-container { grid-column: 9/13 ; }
2020-10-07 07:36:52 +00:00
.library .main-content-container .article-container {
grid-column: 3/11;
}
.article-container { grid-column: 1/9; }
#main-side-content-container { grid-column: 9/13; }
article.aside { border: none; }
article.aside.search {
display: grid;
grid-template-rows: auto auto;
}
article.aside.search header {
display: grid;
grid-auto-rows: auto auto;
grid-auto-columns: 55px auto;
margin-bottom: 12px;
}
article.aside.search header figure {
grid-row: 1/3;
grid-column: 1/2;
}
article.aside.search header figure img {
width: 40px;
height: 40px;
}
article.aside.search header div {
grid-row: 1/2;
grid-column: 2/3;
display: flex;
align-content: center;
justify-items: center;
width: 100%;
height: 100%;
font-weight: 100;
font-size: 1.2rem;
color: var(--font-dark);
2020-08-30 20:13:19 +00:00
}
article.aside.search header span {
grid-row: 2/3;
grid-column: 2/3;
font-size: 0.8rem;
color: var(--font-dark);
margin: auto 0;
width: fit-content;
2020-08-30 20:13:19 +00:00
}
article.aside.search section {
display: inline-flex;
height: auto;
width: fit-content;
}
.white-button {
box-shadow: 0 1px 5px 0 var(--border-medium),
0 1px 2px 0 var(--border-medium);
background-color: var(--bg);
border-radius: 0.9rem;
padding: 6px 12px;
margin: auto 0;
cursor: pointer;
}
.white-button i {
color: var(--blue-light);
font-size: 0.9rem;
}
.white-button:first-child {
margin-right: 10px;
}
.white-button span {
color: var(--font-dark);
font-size: 1rem;
}
.white-button:hover {
box-shadow: 0 1px 6px 0 var(--border-dark),
0 1px 1px 0 var(--border-dark);
}
.white-button:active {
background-color: var(--very-light-grey);
}
2020-09-23 19:12:45 +00:00
.white-button.topic {
border-radius: 3rem;
padding: 7px 14px;
}
/* .main-content-container.full { grid-template-rows: 6rem auto; }
.main-content-container.single { grid-template-rows: 1fr; }
2020-08-30 20:13:19 +00:00
.main-content-section.single
.main-content-container {
grid-row: 1/2;
2020-08-30 20:13:19 +00:00
min-width: 500px;
}
.main-content-section.full
.main-content-container {
grid-row: 2/3;
}
.main-content-container {
grid-column: 1/10;
}
#main-side-content-container {
grid-column: 11/15;
} */
2020-09-23 19:12:45 +00:00
/* #main-content-section.full
#main-side-content-container {
grid-row: 1/3;
grid-column: 2/3;
} */
2020-08-30 20:13:19 +00:00
h1.search {
2020-08-31 18:42:23 +00:00
font-size: 2rem;
2020-08-30 20:13:19 +00:00
margin: auto;
}
#main-content-header.search {
height: 6rem;
display: grid;
grid-template-columns: 1fr 1fr;
grid-row: 1/2;
2020-08-31 18:42:23 +00:00
grid-column: 1/2;
2020-08-30 20:13:19 +00:00
}
2020-09-23 19:12:45 +00:00
2020-08-30 20:13:19 +00:00
#main-content-header.search section {
display: grid;
grid-template-columns: auto auto;
}
#main-content-header.search div {
grid-column: 2/3;
display: flex;
align-items: center;
justify-items: center;
height: 2.8rem;
margin: auto;
}
#main-content-header.search figure {
background-color: var(--bg);
box-shadow: 1px 1px 2px 1px var(--border-medium)
}
#main-content-header.search figure:hover {
cursor: pointer;
2020-09-23 19:12:45 +00:00
background-color: var(--hover-light);
2020-08-30 20:13:19 +00:00
}
#main-content-header.search figure.circle {
border-radius: 50%;
width: 35px;
height: 35px;
display: flex;
align-items: center;
justify-content: center;
margin-right: 15px;
}
#main-content-header.search figure.circle i {
display: flex;
align-items:center;
justify-items: center;
font-size: 18px;
}
#main-content-header.search figure.rectangle {
border-radius: 1rem;
padding: 0.6rem 1.2rem;
}
.header-main-content.search figure.rectangle{
color: var(--font-medium);
}
2020-08-31 18:42:23 +00:00
2020-08-30 20:13:19 +00:00
/*
.main-content-section.full {
width: auto;
display: flex;
align-content: center;
justify-items: center;
}
#main-content-container {
width: 750px;
2020-08-30 12:24:11 +00:00
}
.main-content-section figure article:last-child {
margin-bottom: 5rem;
}
main section #main-content-container,
main section #main-side-content-container{
margin: 12px;
}
.header-main-content{
display: flex;
justify-content: space-between;
}
.header-main-content a{
align-items: flex-end;
justify-content: flex-end;
2020-08-30 20:13:19 +00:00
} */
2020-08-30 12:24:11 +00:00
#coronavirus-article{
grid-template-columns: 1fr 15px 10px;
}
#coronavirus-article > *{
padding: 5px;
}
.coronavirus-article .blue-link span{
color: var(--font-dark);
}
.coronavirus-article:hover{
transition: all ease-in-out 0.3s;
box-shadow: 0px 0px 3px 2px var(--hover-light);
}
.main-article {
grid-template-columns: 1fr;
grid-template-rows: 1fr 2.4rem;
}
.main-article.img {
grid-template-columns: 1fr 18px 150px;
grid-template-rows: 1fr 2.4rem;
}
.main-article.img header {
grid-row: 1/2;
grid-column: 1/2;
}
.main-article.img footer {
grid-row: 2/3;
grid-column: 1/4;
}
.main-article header h1:not(.category) {
font-size: 1.3rem;
font-weight: bold;
}
.main-article header:hover h1 {
text-decoration: underline;
}
.main-article header aside,
article.category header aside {
display: inline-flex;
}
.main-article header aside{
height: 2rem;
}
.article-ext-icon-save,.article-ext-icon-more {
padding: 0 4px;
}
.company-date{
color: var(--font-medium);
display: flex;
align-items: center;
justify-content: center;
padding: 0 10px 0 0;
}
section.category .company-date{
font-size: 0.9em;
}
.main-article header:hover aside .article-ext-icon-save,
.main-article header:hover aside .article-ext-icon-more,
article.category header:hover aside .article-ext-icon-save,
article.category header:hover aside .article-ext-icon-more {
visibility: visible;
}
.article-ext-icon-save,.article-ext-icon-more {
visibility: hidden;
}
.article-ext-icon-save .article-extra-option-icon,
.article-ext-icon-more .article-extra-option-icon {
display: flex;
width: 1.5rem;
height: 1.5rem;
border-radius: 50%;
}
.article-ext-icon-save i:hover,
.article-ext-icon-more i:hover{
box-shadow: 1px 2px 3px 1px var(--shadow);
}
.main-article.img img {
grid-row: 1/3;
grid-column: 3/4;
}
.main-article img{
width: 100%;
height: auto;
border-radius: 10px;
margin: 0 auto;
}
.article-extra-option {
width: 1.5rem;
height: 1.5rem;
border-radius: 50%;
margin-left: 8px;
}
.article-other-info {
padding-right: 10px;
}
.article-extra-option{
width: 9rem;
height: 7rem;
top: 26px;
left: 60%;
background-color: var(--bg);
border: 1px solid var(--border-medium);
border-radius: 4px;
grid-template-rows: 1fr 1fr 1fr;
padding: 10px 0px;
z-index: 1;
}
.article-extra-option-icon{
align-items: center;
justify-content: center;
}
.article-extra-option div:hover{
background-color: var(--hover-light);
}
.article-extra-option div i {
padding: 10px 12px;
width: 10px;
height: 10px;
box-shadow: none;
display: flex;
align-items: center;
justify-content: center;
}
.article-extra-option div i:hover {
box-shadow: none;
}
.article-extra-option div {
color: var(--font-dark);
}
.article-main-content {
color: var(--font-very-dark);
font-size: 1.1rem;
font-weight: 500;
text-align: justify;
}
.main-article footer {
justify-content: space-between;
}
.main-article footer a {
margin: auto 0;
bottom: 0;
left: 0;
padding: 8px 8px 8px 0;
}
.main-article footer i{
justify-content: flex-end;
align-self: flex-end;
margin: auto 0;
padding: 8px;
bottom: 0;
right: 0;
transition: all ease-in-out .3s;
}
.main-article footer a i {
padding: 8px 8px 8px 0;
}
article.category {
grid-template-columns: 1fr 18px 110px;
grid-template-rows: 5.8rem 10px 1fr 10px 0.9rem;
}
article.category header {
grid-column: 1/2;
}
h1.category {
height: 3rem;
font-size: 2rem;
}
article.category header span:nth-child(3) {
color: var(--font-medium);
font-size: 0.9rem;
}
i.category.img {
font-size: 90px;
padding-top: 1rem;
grid-row: 1/5;
grid-column: 3/4;
display: flex;
justify-content: center;
}
article.category section {
grid-row: 3/4;
grid-column: 1/2;
}
section.category header {
grid-template-rows: 1.1rem 1fr 2rem 10px;
grid-template-columns: 20px 1fr;
}
section.category header h1 {
font-weight: bold;
font-size: 1rem;
padding: 0;
margin: auto 0;
cursor: pointer;
grid-row: 1/3;
grid-column: 2/3;
}
section.category header:hover h1 {
text-decoration: underline;
}
section.category header figure {
grid-template-rows: 1rem 1fr;
}
section.category header .dot {
font-size: 0.2rem;
color: var(--title);
margin: auto;
grid-row: 1/2;
grid-column: 1/2;
}
section.category .article-other-info {
grid-row: 3/4;
grid-column: 2/3;
}
section.category header .news-category {
height: auto;
max-height: 3.5rem;
}
section.category header .news-category {
margin-bottom: 15px;
}
section.category header .news-category,
section.category header .news-category h1,
section.category header .news-category aside {
display: inline;
}
section.category header .news-category aside {
padding: 8px 5px;
}
article.category footer {
grid-row: 5/6;
margin: auto 0;
}
article.category footer a {
padding: 8px 0;
}
/** Main Aside */
2020-08-31 18:42:23 +00:00
/* #main-side-content-container{
2020-08-30 12:24:11 +00:00
padding-top: 25px;
2020-08-31 18:42:23 +00:00
} */
article.aside {
border: none;
2020-08-31 18:42:23 +00:00
background-color: var(--very-light-grey);
}
.suggested-words header { margin-bottom: 10px; }
.suggested-words header h1 {
2020-08-31 18:42:23 +00:00
color: var(--font-dark);
font-size: 1.3rem;
margin-bottom: 10px;
2020-08-31 18:42:23 +00:00
}
.suggested-words hr {
width: 100%;
border-bottom: 1px solid var(--hover-medium);
2020-08-31 18:42:23 +00:00
}
.suggested-words div {
color: var(--font-dark);
}
.search-box {
background-color: var(--bg);
border-radius: 12px;
padding: 6px 10px;
width: fit-content;
border: 1px solid var(--hover-medium);
2020-08-31 18:42:23 +00:00
cursor: pointer;
margin: 0 8px 8px 0;
display: inline-flex;
transition: all ease-in-out .35;
2020-08-31 18:42:23 +00:00
}
.search-box:hover {
border: 1px solid var(--font-light);
2020-08-30 12:24:11 +00:00
}
.weather-article {
2020-08-30 12:24:11 +00:00
height: 232px;
width: calc(100% - 40px);
grid-template-rows: 4.2rem 15px 1fr 15px 1.5rem;
padding-bottom: 0;
2020-10-07 07:36:52 +00:00
margin: 0;
margin-top: 20px;
2020-08-30 12:24:11 +00:00
}
.weather-article .weather-main-header{
grid-template-columns: 88px 1fr 100px;
}
.weather-article header > * {
grid-row: 1/2;
margin: auto;
}
.weather-article header label{
font-size: 1.3rem;
color: var(--font-dark);
text-align: center;
}
.weather-article header span {
font-size: 1.8rem;
font-weight: 300;
color: var(--font-dark);
}
.weather-article .weather-3-days{
grid-row: 3/4;
grid-template-columns: 1fr 1fr 1fr;
}
.weather-3-days section{
grid-row: 1/2;
}
.weather-3-days section:not(:nth-child(3)){
border-right: 1px solid var(--border-medium);
}
.weather-3-days header{
text-align: center;
font-weight: 300;
}
.weather-3-days div{
grid-template-columns: 60px 1fr;
}
.weather-3-days div span {
margin: auto;
color: var(--font-very-dark);
font-weight: 300;
}
.far,.fa,.fas {
display: flex;
}
.weather-3-days img, .weather-3-days i{
width: 40px;
height: 40px;
margin: auto;
}
.weather-article footer{
grid-row: 5/6;
grid-template-columns: 1fr 1fr 1fr;
}
.weather-article footer section > *{
grid-row: 1/2;
}
.weather-article footer section:first-child {
grid-template-columns: 1fr 1fr 1fr 1fr;
}
.weather-article footer section:first-child div {
display: flex;
align-items: center;
justify-content: center;
color: var(--font-medium);
}
.weather-article footer section:first-child div.active {
background-color: var(--hover-light);
}
.weather-article footer section:first-child div:first-child {
border-left: 1px solid var(--border-medium);
}
.weather-article footer section:first-child div {
border-right: 1px solid var(--border-medium);
}
.weather-article footer section:last-child {
grid-column: 3/4;
}
.weather-article footer section:last-child a {
padding-left: 10px;
color: var(--font-medium);
margin: auto;
font-size: 0.85rem;
}
/* Other */
/** Search Countries */
.select-country{
top: 50%;
left: 50%;
transform: translate(-50%,-50%) scale(0.9);
transition: all ease-in-out .1s;
border: 1px solid var(--hover-medium);
border-radius: 5px;
z-index: -10;
background-color: var(--bg);
width: 550px;
max-width: 90%;
height: 580px;
grid-template-rows: 4rem 4rem 2.8rem 0.1fr 2.8rem 1fr 2.5rem;
padding: 20px 0;
}
.select-country.active{
z-index: 10;
transform: translate(-50%,-50%) scale(1);
}
.x-icon{
top: 10px;
right: 10px;
width: 40px;
height: 40px;
}
.x-icon:active{ background-color: var(--hover-light); }
.x-icon i { font-size: 1.125rem; }
.select-country .blue-link { font-weight: 500; }
2020-08-30 12:24:11 +00:00
.select-country h3{
font-size:1.6rem;
font-weight: 400;
margin-bottom: 10px;
margin: auto 20px;
}
.select-country h4{
font-size: 1.2rem;
font-weight: 300;
margin-bottom: 25px;
margin: 5px 20px;
color: var(--font-medium);
}
.select-country h5{
font-size: 1rem;
font-weight: 500;
margin-bottom: 12px;
}
.country-search-input-div{
margin: 0 20px;
grid-template-columns: 20px 1fr;
}
.select-country input[type=text]{
grid-column: 1/3;
grid-row: 1/2;
height: 2.3rem;
width: 100%;
border-radius: 6px;
background-color: var(--bg);
border: 1px solid var(--shadow);
padding-left: 36px;
font-size: 1rem;
outline-width: 0;
color: var(--userTextInput);
box-sizing: border-box;
}
.search-icon-country{
grid-column: 1/2;
grid-row: 1/2;
width: 35px;
height: 35px;
border-radius: 50%;
left: 21px;
}
.select-country h6 {
font-size: 1rem;
padding: 0 20px;
}
.radio-button-container{
height: 2.5rem;
grid-template-columns: 2rem 1fr;
align-items: center;
justify-content: center;
}
.select-country .radio-button-container{ padding: 0 20px; }
2020-08-30 12:24:11 +00:00
.select-country .radio-button-container p{
width: fit-content;
margin-left: 8px;
color: var(--font-very-dark);
}
.select-country .list-of-countries{
height: 98%;
width: 100%;
overflow: auto;
}
.select-country footer button{
font-size: 1rem;
border: none;
outline-width: 0;
background-color: transparent;
padding: 8px 10px;
}
.select-country footer{
justify-content: flex-end;
margin: 0 20px;
}
.about-h1{
height: 3rem;
font-size: 2rem;
font-weight: 200;
}
/** Login Options */
.login-option-div {
display: flex;
flex-direction: column;
max-width: 300px;
min-width: 240px;
width: auto;
min-height: 250px;
2020-08-30 12:24:11 +00:00
top: 50%;
left: 50%;
transform: translate(-50%,-50%) scale(0.8);
padding: 25px;
2020-08-30 12:24:11 +00:00
background-color: var(--bg);
border-radius: 5px;
border: 1px solid var(--shadow);
z-index: -10;
}
.login-option-div.active{
z-index: 10;
transform: translate(-50%,-50%) scale(1);
}
.login-option-div header {
display: flex;
flex-direction: column;
margin-bottom: 0.5rem;
2020-08-30 12:24:11 +00:00
}
.login-option-div header span{
font-size: 1.33rem;
2020-08-30 12:24:11 +00:00
color: var(--font-very-dark);
}
.login-option-div h3 {
text-align: center;
font-size: 1.6rem;
color: var(--font-very-dark);
font-weight: 400;
margin-bottom: 1rem;
font-family: 'Open Sans', sans-serif;
2020-08-30 12:24:11 +00:00
}
.external-login-options {
2020-08-30 12:24:11 +00:00
display: flex;
flex-direction: column;
min-width: fit-content;
padding-bottom: 3px;
margin-bottom: 0.5rem;
2020-08-30 12:24:11 +00:00
}
.external-login-options .external-container {
height: 53px;
margin: 4px 0;
2020-08-30 12:24:11 +00:00
}
.external-login-options .container {
width: calc(100% - 2px);
border: 1px solid var(--color);
2020-08-30 12:24:11 +00:00
padding-top: 3px;
padding-bottom: 0;
transition: ease-in .1s;
2020-08-30 12:24:11 +00:00
}
.external-login-options .container:hover {
2020-08-30 12:24:11 +00:00
padding-top: 0;
padding-bottom: 3px;
}
.external-login-options .container .inner-container {
width: 100%;
2020-08-30 12:24:11 +00:00
height: 50px;
display: grid;
grid-template-columns: 50px 1fr;
2020-08-30 12:24:11 +00:00
border-radius: 4px;
border: 1px solid var(--color);
transition: all ease-in .2s;
2020-08-30 12:24:11 +00:00
}
.external-login-options .container:hover .inner-container { box-shadow: 0 2px 4px 0 var(--border-dark); }
2020-08-30 12:24:11 +00:00
.icons8-google {
margin: auto;
2020-08-30 12:24:11 +00:00
display: inline-block;
width: 22px;
height: 22px;
background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjBweCIgeT0iMHB4Igp3aWR0aD0iNDIiIGhlaWdodD0iNDIiCnZpZXdCb3g9IjAgMCA0OCA0OCIKc3R5bGU9IiBmaWxsOiMwMDAwMDA7Ij48cGF0aCBmaWxsPSIjRkZDMTA3IiBkPSJNNDMuNjExLDIwLjA4M0g0MlYyMEgyNHY4aDExLjMwM2MtMS42NDksNC42NTctNi4wOCw4LTExLjMwMyw4Yy02LjYyNywwLTEyLTUuMzczLTEyLTEyYzAtNi42MjcsNS4zNzMtMTIsMTItMTJjMy4wNTksMCw1Ljg0MiwxLjE1NCw3Ljk2MSwzLjAzOWw1LjY1Ny01LjY1N0MzNC4wNDYsNi4wNTMsMjkuMjY4LDQsMjQsNEMxMi45NTUsNCw0LDEyLjk1NSw0LDI0YzAsMTEuMDQ1LDguOTU1LDIwLDIwLDIwYzExLjA0NSwwLDIwLTguOTU1LDIwLTIwQzQ0LDIyLjY1OSw0My44NjIsMjEuMzUsNDMuNjExLDIwLjA4M3oiPjwvcGF0aD48cGF0aCBmaWxsPSIjRkYzRDAwIiBkPSJNNi4zMDYsMTQuNjkxbDYuNTcxLDQuODE5QzE0LjY1NSwxNS4xMDgsMTguOTYxLDEyLDI0LDEyYzMuMDU5LDAsNS44NDIsMS4xNTQsNy45NjEsMy4wMzlsNS42NTctNS42NTdDMzQuMDQ2LDYuMDUzLDI5LjI2OCw0LDI0LDRDMTYuMzE4LDQsOS42NTYsOC4zMzcsNi4zMDYsMTQuNjkxeiI+PC9wYXRoPjxwYXRoIGZpbGw9IiM0Q0FGNTAiIGQ9Ik0yNCw0NGM1LjE2NiwwLDkuODYtMS45NzcsMTMuNDA5LTUuMTkybC02LjE5LTUuMjM4QzI5LjIxMSwzNS4wOTEsMjYuNzE1LDM2LDI0LDM2Yy01LjIwMiwwLTkuNjE5LTMuMzE3LTExLjI4My03Ljk0NmwtNi41MjIsNS4wMjVDOS41MDUsMzkuNTU2LDE2LjIyNyw0NCwyNCw0NHoiPjwvcGF0aD48cGF0aCBmaWxsPSIjMTk3NkQyIiBkPSJNNDMuNjExLDIwLjA4M0g0MlYyMEgyNHY4aDExLjMwM2MtMC43OTIsMi4yMzctMi4yMzEsNC4xNjYtNC4wODcsNS41NzFjMC4wMDEtMC4wMDEsMC4wMDItMC4wMDEsMC4wMDMtMC4wMDJsNi4xOSw1LjIzOEMzNi45NzEsMzkuMjA1LDQ0LDM0LDQ0LDI0QzQ0LDIyLjY1OSw0My44NjIsMjEuMzUsNDMuNjExLDIwLjA4M3oiPjwvcGF0aD48L3N2Zz4=') 50% 50% no-repeat;
background-size: 100%;
}
.google-btn {
--color: var(--google-blue);
width: 100%;
height: 100%;
}
.google-btn label{
background-color: var(--google-blue);
font-weight: 500;
}
.facebook-btn{ background-color: #4267B2; }
.fa.fa-github, .fab.fa-facebook { display: flex; }
.github-btn {
--color: var(--font-very-dark);
background-color: var(--font-very-dark);
}
.external-login-options label,
.github-btn .fa, .fa-facebook { color: var(--bg); }
.other-login-options {
padding: 0.75rem 0;
display: flex;
justify-content: space-between;
flex-direction: row;
}
.seperate-line {
padding: 5px 0;
display: flex;
align-items: center;
justify-content: center;
position: relative;
}
.seperate-line span {
background-color: var(--bg);
z-index: 11;
padding: 4px;
color: var(--font-medium);
}
.seperate-line .line {
position: absolute;
left: 0;
bottom: 50%;
top: 50%;
width: 100%;
z-index: 10;
}
.seperate-line .line hr {
width: inherit;
border-bottom: 1px solid var(--font-medium);
}
2020-10-07 07:36:52 +00:00
/* Article */
article.news {
display: flex;
flex-direction: column;
position: relative;
padding-right: 185px;
padding-bottom: 2.5rem;
}
article.news.no-img { padding-right: 15px; }
article.news .article-header {
display: flex;
flex-direction: column;
margin-bottom: 0.75rem;
}
article.news .article-heading-container:hover h1 {
text-decoration: underline;
cursor: pointer;
}
article.news .article-header h1 {
font-weight: 600;
}
article.news .extra-content-container {
display: flex;
flex-direction: row;
padding: 5px 0;
min-height: 1.2rem;
}
article.news .extra-content-container .author {
display: flex;
align-items: center;
padding-right: 1rem;
}
article.news .author {
font-size: 0.9rem;
color: var(--font-medium);
}
article.news .extra-options-container {
display: flex;
flex-direction: row;
}
.save-container,
.extra-container {
position: relative;
margin-right: 0.5rem;
}
.save-circle,
.extra-circle {
width: 1.75rem;
height: 1.75rem;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
box-shadow: 2px 2px 1px 0px var(--border-light),
0 0 0 1px var(--hover-light) inset;
cursor: pointer;
}
.save-circle:hover,
.extra-circle:hover {
box-shadow: 2px 2px 2px 0px var(--border-medium),
0 0 0 0.4px var(--hover-medium) inset;
}
.save-circle:active,
.extra-circle:active {
box-shadow: 2px 3px 2px 0px var(--border-medium);
background-color: var(--hover-light);
}
.extra-option-container {
position: absolute;
min-width: 10rem;
border-radius: 4px;
padding: 10px 0;
border: 1px solid var(--border-light);
background-color: var(--bg);
z-index: 7;
top: 2rem;
left: 0.5rem;
}
.extra-option-container .e-o-c-container {
padding: 10px 5px;
}
.e-o-c-container {
display: flex;
flex-direction: row;
cursor: pointer;
}
.e-o-c-container:hover { background-color: var(--hover-light); }
.e-o-c-container:active { background-color: var(--hover-medium); }
.e-o-c-container div {
width: 1.25rem;
height: 1.25rem;
display: flex;
align-items: center;
justify-content: center;
margin: 0 1rem 0 0.5rem;
}
article.news .text {
display: inline-flex;
font-size: 1rem;
color: var(--font-dark);
}
article.news .footer {
height: 2rem;
width: 2rem;
position: absolute;
bottom: 15px;
right: 15px;
width: calc(100% -30px);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}
article.news .footer div {
transition: all ease-in-out .3s;
}
.r180 { transform: rotate(180deg); }
article.news .article-img {
position: absolute;
top: 15px;
right: 15px;
display: flex;
align-items: center;
justify-content: center;
}
article.news .article-img img{
border-radius: 0.5rem;
max-width: 150px;
max-height: 150px;
}
.trending-page {
display: flex;
flex-direction: column;
background-color: var(--hover-light);
padding: 0;
}
.trending-page .header {
margin-bottom: 0.5rem;
padding: 10px;
}
.trending-page .main {
border-top: 1px solid var(--border-light);
padding: 10px 0;
cursor: pointer;
color: var(--font-dark);
}
.trending-page .main div {
padding: 0 10px;
margin-bottom: 7px;
}
.trending-page .small {
font-size: 0.8rem;
}
.trending-page .main:hover { background-color: var(--hover-medium); }