Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor styles: move SubTags.module.css styles to app.module.css #2538

Open
wants to merge 7 commits into
base: develop-postgres
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
145 changes: 0 additions & 145 deletions src/screens/SubTags/SubTags.module.css

This file was deleted.

156 changes: 152 additions & 4 deletions src/style/app.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,10 @@

.btnsContainer {
display: flex;
/* Adjust spacing between items */
margin: 2.5rem 0;
align-items: center;
gap: 10px;
/* Adjust spacing between items */
margin: 2.5rem 0;
}

.btnsContainer .btnsBlock {
Expand Down Expand Up @@ -342,6 +341,11 @@
transform: scale(1.5);
color: var(--bs-danger);
margin-bottom: 1rem;
/* Add error icon for non-color indication */
&::before {
content: '⚠️';
margin-right: 0.5rem;
}
}

.subTagsLink {
Expand All @@ -354,13 +358,15 @@
visibility: hidden;
}

.subTagsLink:hover {
.subTagsLink:hover,
.subTagsLink:focus {
color: var(--subtle-blue-grey-hover);
font-weight: 600;
text-decoration: underline;
}

.subTagsLink:hover i {
.subTagsLink:hover i,
.subTagsLink:focus i {
visibility: visible;
}

Expand Down Expand Up @@ -613,3 +619,145 @@ hr {
transform: rotate(360deg);
}
}

.btnsContainer .btnsBlock {
display: flex;
width: max-content;
}

.btnsContainer .btnsBlock button {
margin-left: 1rem;
display: flex;
justify-content: center;
align-items: center;
}

.btnsContainer .input {
flex: 1;
position: relative;
max-width: 60%;
justify-content: space-between;
}
amitb0ra marked this conversation as resolved.
Show resolved Hide resolved

.btnsContainer input {
outline: 1px solid var(--bs-gray-400);
}

.btnsContainer .input button {
width: 52px;
}

@media (max-width: 1020px) {
.btnsContainer {
flex-direction: column;
margin: 1.5rem 0;
}

.btnsContainer .btnsBlock {
margin: 1.5rem 0 0 0;
justify-content: space-between;
}

.btnsContainer .btnsBlock button {
margin: 0;
}

.btnsContainer .btnsBlock div button {
margin-right: 1.5rem;
}
}

/* For mobile devices */

@media (max-width: 520px) {
.btnsContainer {
margin-bottom: 0;
}

.btnsContainer .btnsBlock {
display: block;
margin-top: 1rem;
margin-right: 0;
}

.btnsContainer .btnsBlock div {
flex: 1;
}

.btnsContainer .btnsBlock div[title='Sort organizations'] {
margin-right: 0.5rem;
}

.btnsContainer .btnsBlock button {
margin-bottom: 1rem;
margin-right: 0;
width: 100%;
}
}
amitb0ra marked this conversation as resolved.
Show resolved Hide resolved

.errorMessage {
margin-top: 25%;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
amitb0ra marked this conversation as resolved.
Show resolved Hide resolved

.tableHeader {
background-color: var(--bs-primary-text-emphasis);
color: var(--bs-white);
font-size: 1rem;
}
.rowBackground {
background-color: var(--bs-white);
max-height: 120px;
overflow-y: auto;
}

.subTagsLink {
color: var(--bs-blue);
font-weight: 500;
cursor: pointer;
/* Prevent layout shift */
&::after {
display: block;
content: attr(data-text);
font-weight: 600;
height: 0;
overflow: hidden;
visibility: hidden;
}
}

.subTagsLink i {
visibility: hidden;
}

.tagsBreadCrumbs {
color: var(--bs-gray);
cursor: pointer;
/* Prevent layout shift */
&::after {
display: block;
content: attr(data-text);
font-weight: 600;
height: 0;
overflow: hidden;
visibility: hidden;
}
}

.tagsBreadCrumbs:hover,
.tagsBreadCrumbs:focus {
color: var(--bs-blue);
font-weight: 600;
text-decoration: underline;
}

.subTagsScrollableDiv {
scrollbar-width: auto;
scrollbar-color: var(--bs-gray-400) var(--bs-white);

max-height: calc(100vh - 18rem);
overflow: auto;
}
Loading