Files
twitter-project/dashboard_static/style/style.css
2022-11-03 14:23:49 +01:00

295 lines
4.3 KiB
CSS

:root {
--main-bg: #292929;
--main-light: #ffffff;
--main-medium-dark: #1E1E1E;
--main-dark: #000000;
--tweet-color: #000000;
--column-color: #1E1E1E;
--secondary: #1D9BF0;
}
body, html, .container {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
overflow: auto;
box-sizing: border-box;
}
body {
font-family: 'Roboto', sans-serif;
font-weight: 400;
}
.container {
background-color: var(--main-bg);
color: var(--main-light);
padding: 16px 48px;
display: flex;
flex-direction: column;
}
.header, .sports, .logo {
display: flex;
flex-direction: row;
}
.header {
align-items: center;
user-select: none;
}
.logo {
display: flex;
align-items: center;
padding: 16px;
background-color: var(--main-medium-dark);
border-radius: 16px;
cursor: pointer;
}
.logo img {
height: 36px;
}
.logo span {
font-size: 36px;
font-weight: 500;
margin: 0 8px;
}
.sports {
margin-left: 16px;
overflow-x: auto;
}
.sport {
display: flex;
flex-direction: row;
align-items: center;
height: 30px;
padding: 4px;
margin-right: 8px;
border: 1px solid var(--main-light);
border-radius: 100px;
cursor: pointer;
}
.sport .material-symbols-outlined {
font-size: 32px;
}
.sport-name {
font-weight: 500;
font-size: 24px;
margin: 0 6px 0 4px;
}
.selected {
color: var(--secondary);
border-color: var(--secondary);
}
.tweet {
display: flex;
gap: 10px;
background-color: var(--tweet-color);
border-radius: 16px;
padding: 16px;
margin-bottom: 8px;
}
.tweet-profilepicture {
border-radius: 100%;
width: 60px;
height: 60px;
/* padding: 8px; */
}
.tweet-content {
padding-left: 16px;
}
.tweet-name {
display: flex;
gap: 1.5%;
}
.tweet-interactions {
display: flex;
margin-top: 8px;
}
.tweet-interaction {
display: flex;
align-items: center;
margin-right: 24px;
}
.tweet-interaction .material-symbols-outlined {
margin-right: 4px;
}
.tweet-nickname {
color: var(--main-light);
text-decoration: none;
font-weight: bold;
}
.tweet-nickname:active {
color: var(--main-light);
text-decoration: underline;
font-weight: bold;
}
.tweet-nickname:hover {
color: white;
text-decoration: underline;
font-weight: bold;
}
.tweet-username {
color: var(--main-light);
text-decoration: none;
opacity: 0.8;
}
.tweet-date {
color: var(--main-light);
text-decoration: none;
justify-self: flex-end;
opacity: 0.8;
}
.filters-search input {
height: 28px;
width: 100%;
border: none;
font-family: 'Robot', sans-serif;
font-size: 24px;
padding: 0;
padding-right: 32px;
}
.filters-search span {
position: absolute;
font-weight: 500;
font-size: 24px;
color: var(--main-medium-dark);
}
/* Three main columns; CSS Grid */
.maintable {
/*background-color: #ffffff; */ /* The colors are there just so that I can see what I'm doing better */
width: 100%;
height: 100%;
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-template-rows: 1fr;
grid-gap: 48px;
/* margin:20px; */
}
.main {
margin-top: 32px;
height: 100%;
}
.column {
border-radius: 16px;
}
.leftcol, .centercol {
overflow-y: auto;
grid-row: 1/ -1;
}
.leftcol, .centercol, .rightcol, .searchcontainer, .popchart {
background-color: var(--column-color);
}
.rightcol {
display: flex;
flex-direction: column;
}
.searchcontainer {
padding: 8px;
box-sizing: border-box;
display: flex;
flex-wrap: wrap;
margin-bottom: 32px;
}
.colheader {
display: block;
font-weight: 500;
font-size: 40px;
padding: 8px 16px;
font-size: 38px;
padding-left: 30px;
}
.searchbar, .blockedwords {
width: 100%;
}
.searchbar, .button, .blockedwords {
font-weight: bold;
font-size: 22px;
border-radius: 50px;
padding: 8px;
margin: 4px 8px;
border: none;
}
.button {
color: var(--main-bg);
cursor: pointer;
background-color: var(--main-light);
border-radius: 16px;
border: none;
}
.material-symbols-outlined.order-btn {
line-height: 52px;
font-weight: 600;
user-select: none;
}
.sort-btn {
user-select: none;
position: relative;
}
.sort-dropdown {
display: none;
}
.sort-dropdown-list {
/* position: absolute; */
width: 100%;
list-style-type: none;
padding: 0;
margin: 0;
margin-left: -8px;
background-color: var(--main-light);
border-radius: 0 0 16px 16px;
}
.sort-dropdown-list li {
font-weight: 500;
font-size: 22px;
padding: 0 8px;
}
.radius-bottom {
border-bottom-left-radius: 16px;
border-bottom-right-radius: 16px;
}