Files
my-links/styles/home/categories.module.scss
2022-04-28 18:22:39 +02:00

151 lines
3.2 KiB
SCSS

.categories-wrapper {
height: 100%;
width: 300px;
padding: 0 25px 0 10px;
border-right: 1px solid #dadce0;
margin-right: 15px;
display: flex;
align-items: center;
flex-direction: column;
overflow-x: none;
& .block-wrapper {
height: auto;
width: 100%;
& h4 {
user-select: none;
text-transform: uppercase;
font-size: 0.85em;
color: #bbb;
margin-bottom: 5px;
}
// List items
& .items .item {
user-select: none;
cursor: pointer;
background-color: #fff;
padding: 7px 12px;
border: 1px solid #dadce0;
border-bottom: 2px solid #dadce0;
border-radius: 3px;
transition: 0.15s;
&:not(:last-child) {
margin-bottom: 5px;
}
& .links-count {
color: #bbb;
font-size: 0.85em;
}
&.active {
color: #fff;
background: #3f88c5;
border-color: #3f88c5;
}
&:hover:not(.active) {
color: #3f88c5;
background: #f0eef6;
border-bottom: 2px solid #3f88c5;
}
}
}
// Favorites
& .block-wrapper.favorites {
margin-bottom: 15px;
& .items .item {
padding: 0;
display: flex;
align-items: center;
}
& .items .no-fav-link {
user-select: none;
text-align: center;
font-style: italic;
font-size: 0.9em;
color: #bbb;
}
& .items .item a {
width: 100%;
text-decoration: none;
color: inherit;
padding: 7px 12px;
border: 0 !important;
}
& .items .item .category {
color: #bbb;
font-size: 0.85em;
}
}
// Categories
& .block-wrapper.categories {
min-height: 0;
display: flex;
flex: 1;
flex-direction: column;
& .items {
overflow: auto;
& .item {
margin-right: 5px;
}
}
}
// Controls
.controls {
margin: 10px 0;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
// User Card
& .user-card-wrapper {
position: relative;
user-select: none;
height: fit-content;
width: 100%;
color: #333;
background-color: #fff;
& .user-card {
border: 1px solid #dadce0;
padding: 7px 12px;
display: flex;
gap: 10px;
align-items: center;
& img {
border-radius: 50%;
}
}
& .disconnect-btn {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
color: #fff;
display: none;
}
&:hover .disconnect-btn {
display: block;
}
}
}