Update: Changed pages css to adapte new theme system

This commit is contained in:
Rectos VX 2024-05-05 15:07:44 +04:00
parent eb8a494b5c
commit 04d1ff3822
8 changed files with 387 additions and 124 deletions

View file

@ -10,11 +10,15 @@
display: flex; display: flex;
align-items: center; /* Center children horizontally */ align-items: center; /* Center children horizontally */
flex-grow: 1; flex-grow: 1;
flex-direction: column;
} }
.footer-powered-by { .footer-powered-by {
margin-top: auto; /* Pushes the text to the bottom */ margin-top: auto; /* Pushes the text to the bottom */
color: grey;
text-align: center; /* Centers the text inside the div */ text-align: center; /* Centers the text inside the div */
width: 100%; /* Full width to center the text properly */ width: 100%; /* Full width to center the text properly */
} }
.footer-icon {
font-size: 2rem;
}

View file

@ -1,18 +1,19 @@
#searchBar { #searchBar {
background-image: url("../images/search.svg"); color: var(--md-sys-color-on-surface);
background-position: 16px 16px; background-color: var(--md-sys-color-surface-container-low);
background-repeat: no-repeat;
width: 100%; width: 100%;
font-size: 16px; font-size: 16px;
margin-bottom: 12px; margin-bottom: 2rem;
padding: 12px 20px 12px 40px; padding: 0.75rem 3.5rem;
border: 1px solid #ddd; border: 0.1rem solid var(--md-sys-color-outline-variant);
border-radius: 3rem;
outline-color: var(--md-sys-color-outline-variant);
} }
.dark-mode-search {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' hei… 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E") !important; .search-icon {
color: #f8f9fa !important; position: absolute;
background-color: #212529 !important; margin: 0.75rem 1rem;
border-color: #343a40 !important; border: 0.1rem solid transparent;
} }
.features-container { .features-container {
@ -22,23 +23,23 @@
} }
.feature-card { .feature-card {
border: 2px solid rgba(0, 0, 0, 0.25); border: 2px solid var(--md-sys-color-surface-5);
border-radius: 0.25rem; border-radius: 2rem;
padding: 1.25rem; padding: 1.25rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: flex-start; align-items: flex-start;
background: rgba(13, 110, 253, 0.05); background: var(--md-sys-color-surface-5);
transition: transition:
transform 0.3s, transform 0.3s,
border 0.3s; border 0.3s;
transform-origin: center center; transform-origin: center center;
outline: 2px solid transparent; outline: 0px solid transparent;
} }
.feature-card a { .feature-card a {
text-decoration: none; text-decoration: none;
color: inherit; color: var(--md-sys-color-on-surface);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
width: 100%; width: 100%;
@ -47,45 +48,43 @@
.feature-card .card-text { .feature-card .card-text {
flex: 1; flex: 1;
margin-left: 3.5rem;
} }
.feature-card:hover { .feature-card:hover {
outline: 1px solid rgba(0, 0, 0, 0.5);
cursor: pointer; cursor: pointer;
transform: scale(1.1); transform: scale(1.1);
box-shadow: var(--md-sys-elevation-3);
} }
.feature-card:hover .card-title {
text-decoration: underline;
}
.card-title.text-primary { .card-title.text-primary {
color: #000; /* Replace with your desired shade of blue */ color: #000;
} }
.home-card-icon { .home-card-icon {
width: 30px; width: 3rem;
height: 30px; height: 3rem;
transform: translateY(-5px); transform: translateY(-5px);
} }
.home-card-icon-colour {
filter: invert(0.2) sepia(2) saturate(50) hue-rotate(190deg);
}
.favorite-icon { .favorite-icon {
display: none; display: none;
position: absolute; position: absolute;
top: 10px; top: 10px;
right: 10px; right: 10px;
color: var(--md-sys-color-secondary);
} }
/* Only show the favorite icons when the parent card is being hovered over */ /* Only show the favorite icons when the parent card is being hovered over */
.feature-card:hover .favorite-icon { .feature-card:hover .favorite-icon {
display: block; display: block;
} }
.favorite-icon img { .favorite-icon img {
filter: brightness(0); filter: brightness(0) invert(var(--md-theme-filter-color));
} }
.jumbotron { .jumbotron {
padding: 3rem 3rem; /* Reduce vertical padding */ padding: 3rem 3rem;
} /* Reduce vertical padding */
}

View file

@ -8,7 +8,6 @@ body {
align-items: center; align-items: center;
padding-top: 40px; padding-top: 40px;
padding-bottom: 40px; padding-bottom: 40px;
background-color: #f5f5f5;
} }
.form-signin { .form-signin {
@ -37,6 +36,7 @@ body {
border-top-left-radius: 0; border-top-left-radius: 0;
border-top-right-radius: 0; border-top-right-radius: 0;
} }
.container-flex { .container-flex {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -44,41 +44,22 @@ body {
width: 100%; /* Set width to 100% */ width: 100%; /* Set width to 100% */
align-items: center; /* Center its children horizontally */ align-items: center; /* Center its children horizontally */
} }
.footer-bottom { .footer-bottom {
margin-top: auto; margin-top: auto;
} }
body.light-mode input:-webkit-autofill,
body.light-mode input:-webkit-autofill:hover, .form-control {
body.light-mode input:-webkit-autofill:focus, border-radius: 1.25rem !important;
body.light-mode input:-webkit-autofill:active {
-webkit-text-fill-color: #212529; /* Dark font color */
-webkit-box-shadow: 0 0 0 1000px #f8f9fa inset; /* Light background color */
} }
/* Dark Mode */ .form-signin .form-floating {
body.dark-mode input:-webkit-autofill, margin: 1rem 0px;
body.dark-mode input:-webkit-autofill:hover,
body.dark-mode input:-webkit-autofill:focus,
body.dark-mode input:-webkit-autofill:active {
-webkit-text-fill-color: #f8f9fa; /* Light font color */
-webkit-box-shadow: 0 0 0 1000px #212529 inset; /* Dark background color */
}
/* Light Mode */
body.light-mode .form-floating > input:focus + label {
color: #212529 !important; /* Dark text for light background */
} }
/* Dark Mode */ input[type="checkbox" i] {
body.dark-mode .form-floating > input:focus + label { margin: 0px 5px;
color: #fff !important; /* Light text for dark background */ vertical-align: middle;
}
body.light-mode .form-floating > label {
color: #212529 !important; /* Dark text for light background */
}
body.dark-mode .form-floating > label {
color: #fff !important; /* Light text for dark background */
} }
/* Removing default styles for ul and li */ /* Removing default styles for ul and li */

View file

@ -3,43 +3,80 @@
margin: 0 auto; margin: 0 auto;
} }
.global-buttons-container { label {
text-align: left;
display: block;
padding: 0rem 0.25rem;
font-size: 1.25rem;
}
.form-control {
border-radius: 16px !important;
padding: 0.75rem;
border: 1px solid var(--theme-color-outline-variant);
}
.mt-action-bar {
display: flex; display: flex;
gap: 10px; gap: 10px;
align-items: start; align-items: start;
background-color: var(--md-sys-color-surface-5);
background-color: rgba(13, 110, 253, 0.1); border: none;
border: 1px solid rgba(0, 0, 0, 0.25);
backdrop-filter: blur(2px); backdrop-filter: blur(2px);
top: 10px; top: 10px;
z-index: 10; z-index: 10;
padding: 10px; padding: 1.25rem;
border-radius: 8px; border-radius: 2rem;
} margin: 0px 25px;
.global-buttons-container > * {
padding: 0.6rem 0.75rem;
} }
.global-buttons-container svg { .mt-action-bar>* {
padding-bottom: 0.5rem;
}
.mt-action-bar svg,
.mt-action-btn svg {
width: 20px; width: 20px;
height: 20px; height: 20px;
} }
.mt-action-bar .mt-filename {
width: 100%;
}
.mt-action-btn {
display: flex;
gap: 10px;
align-items: start;
top: 10px;
z-index: 10;
padding: 12px 0px 0px;
width: 100%;
}
.mt-action-btn .btn {
width: 3rem;
height: 3rem;
border-radius: 20px;
padding: 0;
}
#export-button { #export-button {
margin-left: auto; margin-left: auto;
} }
#bg-card {
background-color: var(--md-sys-color-surface-5);
border-radius: 3rem;
padding: 25px 0 0;
}
#pages-container-wrapper { #pages-container-wrapper {
--background-color: rgba(0, 0, 0, 0.025);
--scroll-bar-color: #f1f1f1;
--scroll-bar-thumb: #888;
--scroll-bar-thumb-hover: #555;
background-color: var(--background-color);
width: 100%; width: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding: 10px 25px; padding: 1rem;
border-radius: 10px; border-radius: 25px;
overflow-y: hidden; overflow-y: hidden;
overflow-x: auto; overflow-x: auto;
min-height: 275px; min-height: 275px;
@ -47,11 +84,11 @@
} }
#pages-container { #pages-container {
margin: auto;
gap: 0px; gap: 0px;
display: flex; display: flex;
align-items: center; flex-wrap: wrap;
justify-content: center; margin-left: -15px;
margin-right: -15px;
} }
/* width */ /* width */
@ -86,6 +123,58 @@
position: relative; position: relative;
user-select: none; user-select: none;
transition: width 1s linear; transition: width 1s linear;
margin-top: 16px;
margin-bottom: 16px;
}
/* Pushes the last item to the left */
.page-container:last-child {
margin-right: auto;
}
.page-container:last-child:lang(ar),
/* Arabic */
.page-container:last-child:lang(he),
/* Hebrew */
.page-container:last-child:lang(fa),
/* Persian */
.page-container:last-child:lang(ur),
/* Urdu */
.page-container:last-child:lang(ckb),
/* Sorani Kurdish */
.page-container:last-child:lang(ks),
/* Kashmiri */
.page-container:last-child:lang(kk),
/* Kazakh */
.page-container:last-child:lang(uz),
/* Uzbek */
.page-container:last-child:lang(ky),
/* Kyrgyz */
.page-container:last-child:lang(bal),
/* Baluchi */
.page-container:last-child:lang(dv),
/* Divehi */
.page-container:last-child:lang(ps),
/* Pashto */
.page-container:last-child:lang(sdg),
/* Southern Kurdish */
.page-container:last-child:lang(syr),
/* Syriac */
.page-container:last-child:lang(mzn),
/* Mazanderani */
.page-container:last-child:lang(tgl),
/* Tagalog */
.page-container:last-child:lang(pnb),
/* Western Punjabi */
.page-container:last-child:lang(ug),
/* Uyghur */
.page-container:last-child:lang(nqo),
/* N'Ko */
.page-container:last-child:lang(bqi)
/* Bakhtiari */
{
margin-left: auto !important;
margin-right: 0 !important;
} }
.page-container img { .page-container img {
@ -109,11 +198,15 @@
.page-number { .page-number {
position: absolute; position: absolute;
top: 5px; top: 5px;
right: 5px; right: 0px;
color: white; color: var(--md-sys-color-on-surface);
background-color: #007bff; /* Primary blue color */ background-color: var(--md-sys-color-surface-5);
padding: 3px 6px; padding: 6px 8px;
border-radius: 4px; border-radius: 8px;
font-size: 12px; font-size: 16px;
z-index: 2; z-index: 2;
} }
.tool-header {
margin: 0.5rem 1rem 2rem;
}

View file

@ -7,28 +7,35 @@
} }
#navbarSearch.show { #navbarSearch.show {
max-height: 300px; /* Adjust this to your desired max height */ max-height: 300px;
/* Adjust this to your desired max height */
} }
#searchForm { #searchForm {
width: 200px; /* Adjust this value as needed */ width: 200px;
/* Adjust this value as needed */
} }
/* Style the search results to match the navbar */ /* Style the search results to match the navbar */
#searchResults { #searchResults {
max-height: 200px; /* Adjust this value as needed */ max-height: 200px;
/* Adjust this value as needed */
overflow-y: auto; overflow-y: auto;
width: 100%; width: 100%;
max-width: 300px; /* Adjust to your preferred width */ max-width: 300px;
transition: height 0.3s ease; /* Smooth height transition */ /* Adjust to your preferred width */
transition: height 0.3s ease;
/* Smooth height transition */
} }
#searchResults .dropdown-item { #searchResults .dropdown-item {
display: flex; display: flex;
align-items: center; align-items: center;
white-space: nowrap; white-space: nowrap;
height: 50px; /* Fixed height */ height: 50px;
overflow: hidden; /* Hide overflow */ /* Fixed height */
overflow: hidden;
/* Hide overflow */
} }
#searchResults .icon { #searchResults .icon {
@ -37,39 +44,48 @@
#searchResults .icon-text { #searchResults .icon-text {
display: inline; display: inline;
overflow: hidden; /* Hide overflow */ overflow: hidden;
text-overflow: ellipsis; /* Add ellipsis for long text */ /* Hide overflow */
text-overflow: ellipsis;
/* Add ellipsis for long text */
} }
#search-icon i { #search-icon i {
font-size: 24px; /* Adjust this to your desired size */ font-size: 24px;
/* Adjust this to your desired size */
transition: color 0.3s; transition: color 0.3s;
} }
#search-icon:hover i { #search-icon:hover i {
color: #666; /* Adjust this to your hover color */ color: #666;
/* Adjust this to your hover color */
} }
.search-input { .search-input {
transition: transition: border 0.3s, box-shadow 0.3s;
border 0.3s,
box-shadow 0.3s;
} }
.search-input:focus { .search-input:focus {
border-color: #666; /* Adjust this to your focus color */ border-color: #666;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Adjust this to your desired shadow */ /* Adjust this to your focus color */
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
/* Adjust this to your desired shadow */
} }
/* Set a fixed height and styling for each search result item */ /* Set a fixed height and styling for each search result item */
.search-results a { .search-results a {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 10px; /* space between icon and text */ gap: 10px;
height: 40px; /* Adjust based on your design */ /* space between icon and text */
overflow: hidden; /* Prevent content from overflowing */ height: 40px;
white-space: nowrap; /* Prevent text from wrapping to next line */ /* Adjust based on your design */
text-overflow: ellipsis; /* Truncate text if it's too long */ overflow: hidden;
/* Prevent content from overflowing */
white-space: nowrap;
/* Prevent text from wrapping to next line */
text-overflow: ellipsis;
/* Truncate text if it's too long */
} }
.main-icon { .main-icon {
@ -79,11 +95,11 @@
transform: translateY(-2px); transform: translateY(-2px);
} }
.icon { .nav-icon {
width: 16px;
height: 16px;
vertical-align: middle; vertical-align: middle;
transform: translateY(-2px); font-size: 2rem !important;
padding: 0.25rem;
border-radius: 1rem;
} }
.icon + .icon { .icon + .icon {
@ -92,21 +108,40 @@
.icon-text { .icon-text {
margin-left: 4px; margin-left: 4px;
display: inline-flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
text-decoration: none;
}
span.icon-text::after {
content: attr(data-text);
content: attr(data-text) / "";
font-weight: 600;
height: 0;
visibility: hidden;
overflow: hidden;
user-select: none;
pointer-events: none;
} }
.nav-item-separator { .nav-item-separator {
position: relative; position: relative;
margin: 0 4px; /* Adjust the margin as needed */ margin: 0 4px;
/* Adjust the margin as needed */
} }
.nav-item-separator::before { .nav-item-separator::before {
content: ""; content: "";
position: absolute; position: absolute;
left: 0; left: 0;
top: 10%; /* Adjust the top and bottom margins as needed */ top: 10%;
/* Adjust the top and bottom margins as needed */
bottom: 10%; bottom: 10%;
width: 1px; width: 1px;
background-color: #ccc; /* Adjust the color as needed */ background-color: #ccc;
/* Adjust the color as needed */
} }
.navbar-icon { .navbar-icon {
@ -114,3 +149,116 @@
height: 20px; height: 20px;
transform: translateY(-2px); transform: translateY(-2px);
} }
.navbar-toggler{
color: var(--md-sys-color-on-surface-variant);
}
.dropdown-menu.scrollable-y {
overflow-y: scroll;
height: 360px;
}
/* Dropdown Scrollbar*/
.scrollable-y {
overflow-y: scroll;
height: 360px;
}
.scrollable-y::-webkit-scrollbar {
background: transparent;
width: 0.7rem;
}
.scrollable-y::-webkit-scrollbar-track {
background: transparent;
}
.scrollable-y::-webkit-scrollbar-thumb {
border-radius: 2rem;
background-color: var(--md-sys-color-surface-5);
border: 3px solid var(--md-sys-color-surface-5);
}
/* Mega Menu */
.dropdown-mega .dropdown-menu {
width: 98%;
}
.dropdown-mega .title {
padding-bottom: 1rem;
margin: 0;
}
.dropdown-menu .list-group {
padding: 1rem;
}
.mega-content .dropdown-item:focus .nav-icon,
.mega-content .dropdown-item:hover .nav-icon,
.mega-content .dropdown-item.active .nav-icon {
background-color: transparent;
}
.dropdown-item:focus.sign,
.dropdown-item:hover.sign,
.dropdown-item.active.sign {
color: var(--md-nav-on-section-color-sign);
background-color: var(--md-nav-section-color-sign);
}
.dropdown-item:focus.organize,
.dropdown-item:hover.organize,
.dropdown-item.active.organize {
color: var(--md-nav-on-section-color-organize);
background-color: var(--md-nav-section-color-organize);
}
.dropdown-item:focus.convert,
.dropdown-item:hover.convert,
.dropdown-item.active.convert {
color: var(--md-nav-on-section-color-convert);
background-color: var(--md-nav-section-color-convert);
}
.dropdown-item:focus.image,
.dropdown-item:hover.image,
.dropdown-item.active.image {
color: var(--md-nav-on-section-color-image);
background-color: var(--md-nav-section-color-image);
}
.dropdown-item:focus.word,
.dropdown-item:hover.word,
.dropdown-item.active.word {
color: var(--md-nav-on-section-color-word);
background-color: var(--md-nav-section-color-word);
}
.dropdown-item:focus.ppt,
.dropdown-item:hover.ppt,
.dropdown-item.active.ppt {
color: var(--md-nav-on-section-color-ppt);
background-color: var(--md-nav-section-color-ppt);
}
.dropdown-item:focus.security,
.dropdown-item:hover.security,
.dropdown-item.active.security {
color: var(--md-nav-on-section-color-security);
background-color: var(--md-nav-section-color-security);
}
.dropdown-item:focus.other,
.dropdown-item:hover.other,
.dropdown-item.active.other {
color: var(--md-nav-on-section-color-other);
background-color: var(--md-nav-section-color-other);
}
.dropdown-item:focus.advance,
.dropdown-item:hover.advance,
.dropdown-item.active.advance {
color: var(--md-nav-on-section-color-advance);
background-color: var(--md-nav-section-color-advance);
}

View file

@ -9,19 +9,33 @@
opacity: 1; opacity: 1;
} }
.pdf-actions_button-container > * { .pdf-actions_button-container>* {
padding: 0.25rem 0.5rem; padding: 0.25rem 0.5rem;
margin: 3px;
display: block; display: block;
} }
.pdf-actions_button-container>*:focus {
box-shadow: none !important;
}
.pdf-actions_button-container .btn {
border-radius: 12px;
}
.pdf-actions_button-container> :first-child,
.pdf-actions_container:first-child>.pdf-actions_button-container> :first-child+* {
border-radius: 12px 0px 0px 12px;
}
.pdf-actions_container svg { .pdf-actions_container svg {
width: 16px; width: 16px;
height: 16px; height: 16px;
} }
.pdf-actions_container:nth-child(1) .pdf-actions_move-left-button { .pdf-actions_container:nth-child(1) .pdf-actions_move-left-button {
display: none; display: none;
} }
.pdf-actions_container:last-child .pdf-actions_move-right-button { .pdf-actions_container:last-child .pdf-actions_move-right-button {
display: none; display: none;
} }
@ -37,6 +51,25 @@
transition: opacity 0.2s; transition: opacity 0.2s;
} }
.pdf-actions_insert-file-button-container button .material-symbols-rounded {
vertical-align: top;
}
.pdf-actions_insert-file-button-container.left button,
.pdf-actions_insert-file-button-container.right button {
padding: 0.45rem;
}
.pdf-actions_button-container button .material-symbols-rounded {
font-size: 1.25rem;
vertical-align: sub;
}
.pdf-actions_insert-file-button {
padding: 0;
vertical-align: sub;
}
.pdf-actions_insert-file-button-container.left { .pdf-actions_insert-file-button-container.left {
left: -20px; left: -20px;
} }
@ -63,11 +96,11 @@ html[dir="rtl"] .pdf-actions_insert-file-button-container.left {
translate: 0 -50%; translate: 0 -50%;
} }
html[dir="ltr"] .pdf-actions_container:last-child > .pdf-actions_insert-file-button-container.right { html[dir="ltr"] .pdf-actions_container:last-child>.pdf-actions_insert-file-button-container.right {
display: block; display: block;
} }
html[dir="rtl"] .pdf-actions_container:last-child > .pdf-actions_insert-file-button-container.left { html[dir="rtl"] .pdf-actions_container:last-child>.pdf-actions_insert-file-button-container.left {
display: block; display: block;
} }
@ -75,6 +108,7 @@ html[dir="rtl"] .pdf-actions_container:last-child > .pdf-actions_insert-file-but
opacity: 1; opacity: 1;
transition: opacity 0.05s; transition: opacity 0.05s;
} }
.pdf-actions_insert-file-button { .pdf-actions_insert-file-button {
position: absolute; position: absolute;
top: 50%; top: 50%;
@ -82,4 +116,4 @@ html[dir="rtl"] .pdf-actions_container:last-child > .pdf-actions_insert-file-but
translate: 50% -50%; translate: 50% -50%;
aspect-ratio: 1; aspect-ratio: 1;
border-radius: 100px; border-radius: 100px;
} }

View file

@ -4,18 +4,23 @@
.bordered-box { .bordered-box {
border: 1px solid #ddd; border: 1px solid #ddd;
padding: 20px; padding: 2rem;
margin: 20px; margin: 2rem;
width: 70%; width: 70%;
} }
.center-element { .center-element {
width: 80%; width: 100%;
text-align: center; text-align: center;
margin: auto; margin: auto;
margin-top: 2rem;
} }
.element-margin { .element-margin {
margin: 10px 0; margin: 1rem 0;
/* Adjust this value to increase/decrease the margin as needed */ /* Adjust this value to increase/decrease the margin as needed */
} }
#pipelineList {
margin-bottom: 2rem;
}

View file

@ -763,7 +763,6 @@ fieldset:disabled .btn {
/* Forms */ /* Forms */
textarea.form-control { textarea.form-control {
border-radius: 1.5rem !important; border-radius: 1.5rem !important;
;
} }
.form-control, .form-control,