-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
style: created custom tagify scss file and updated gulp file #10063
base: main
Are you sure you want to change the base?
Changes from 14 commits
73a497d
6a90691
aa23cad
9a0467f
78a1ff6
ddae13e
3fad730
8755404
336c50d
5d562cc
934d4f0
cbc1ae6
30e873f
752a5cf
d4cef45
ddbd4a9
2690f67
bc58995
cdb3458
4ecf12b
5628306
92741a9
afbee76
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change looks out of place |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
@import "variables"; | ||
@import "custom-tagify"; | ||
@import "variables"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
@import "settings"; | ||
@import "sveetoy/f5_settings"; | ||
@import "foundation"; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @IsaiahLevy your file has merging problems ! |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
<<<<<<< HEAD | ||
|
||
@import "../node_modules/@yaireo/tagify/src/tagify.scss"; | ||
@import "variables"; | ||
|
||
// Global definitions for CSS custom properties | ||
:root { | ||
// Primary color for Tagify dropdown, set for easy theming | ||
$tagify-dd-color-primary: #341100 !important; | ||
--tagify-dd-color-primary: #341100 !important; | ||
} | ||
|
||
// Style adjustments for Tagify input placeholder | ||
.tagify__input::placeholder { | ||
color: $dark; // Use dark color for placeholder text as defined in variables | ||
} | ||
|
||
// Enhance hover state for Tagify tags for better user experience | ||
.tagify__tag:hover { | ||
background-color: var(--chocolate); | ||
border-color: var(--chocolate-light); | ||
} | ||
|
||
// Default style for Tagify tag removal button | ||
======= | ||
@import "../node_modules/@yaireo/tagify/src/tagify.scss"; | ||
@import "variables"; | ||
|
||
// Placeholder style for Tagify input | ||
.tagify__input::placeholder { | ||
color: $dark; | ||
} | ||
|
||
// Hover state for Tagify tags | ||
.tagify__tag:hover { | ||
background-color: $chocolate; // Use 'chocolate' for better contrast and theme consistency | ||
border-color: lighten($chocolate, 10%); // Lighten the chocolate color for border | ||
} | ||
|
||
// Style for the remove button in tags | ||
>>>>>>> 336c50d8b87fe355cbdfc7d79595992b3fb9dc58 | ||
.tagify__tag .tagify__tag__removeBtn { | ||
background-color: $text-color-dark; | ||
} | ||
|
||
<<<<<<< HEAD | ||
// Hover effect for tag removal button, increases visibility and interactivity | ||
.tagify__tag .tagify__tag__removeBtn:hover { | ||
background-color: var(--chocolate); | ||
} | ||
|
||
// Base styling for dropdown items, setting defaults for readability and aesthetics | ||
.tagify__dropdown__item { | ||
background-color: white; | ||
border-color: var(--chocolate-lighter); | ||
color: black; | ||
} | ||
|
||
// Hover state for dropdown items to indicate selection possibility | ||
.tagify__dropdown__item:hover { | ||
background-color: var(--chocolate); | ||
color: white; | ||
} | ||
|
||
// Active state styling for dropdown items to indicate current selection | ||
.tagify__dropdown__item--active { | ||
background-color: var(--chocolate); | ||
color: white; | ||
======= | ||
// Hover state for the remove button in tags | ||
.tagify__tag .tagify__tag__removeBtn:hover { | ||
background-color: $chocolate; // Same 'chocolate' color for consistency | ||
} | ||
|
||
// Hover state for dropdown items | ||
.tagify__dropdown__item--active, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this rule does not seems to work, but I don't know why. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hey thank you for the feedback. Just pushed changes to fix this. |
||
.tagify__dropdown__item:hover { | ||
background-color: $chocolate; // Again, using 'chocolate' for hover state | ||
} | ||
|
||
// Style for dropdown items | ||
.tagify__dropdown__item { | ||
border-color: lighten($chocolate, 20%); // Lighten for subtle borders | ||
>>>>>>> 336c50d8b87fe355cbdfc7d79595992b3fb9dc58 | ||
} |
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -19,6 +19,7 @@ | |||
<link rel="stylesheet" href="[% static_subdomain %]/css/dist/app-[% edq(lang('text_direction')) %].css?v=[% css_timestamp %]" data-base-layout="true"> | ||||
<link rel="stylesheet" href="[% static_subdomain %]/css/dist/jqueryui/themes/base/jquery-ui.css" data-base-layout="true"> | ||||
<link rel="stylesheet" href="[% static_subdomain %]/css/dist/select2.min.css"> | ||||
<link rel="stylesheet" href="[% static_subdomain %]/css/dist/custom-tagify.css" data-base-layout="true"> | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We only really need Tagify in
cgi/product_multilingual.pl should be updated.
|
||||
<link rel="search" href="[% formatted_subdomain %]/cgi/opensearch.pl" type="application/opensearchdescription+xml" title="[% edq(lang('site_name')) %]"> | ||||
[% header %] | ||||
<style media="all"> | ||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.