-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updated readme * Disabled collextions dropdown * Handled field dark mode * Handled django & unfokd dark mode * Bump version to 1.0.2
- Loading branch information
1 parent
17390a0
commit b90da7f
Showing
6 changed files
with
75 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 47 additions & 18 deletions
65
django-icon-picker/django_icon_picker/static/django_icon_picker/css/icon_picker.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,60 @@ | ||
.icon-dropdown-list { | ||
max-height: 300px; | ||
overflow-y: auto; | ||
border: 1px solid #ddd; | ||
border-radius: 4px; | ||
background: white; | ||
box-shadow: 0 2px 4px rgba(0,0,0,0.1); | ||
max-height: 300px; | ||
max-width: 300px; | ||
overflow-y: auto; | ||
border: 1px solid #ddd; | ||
border-radius: 4px; | ||
background: white; | ||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); | ||
} | ||
|
||
.dark .icon-dropdown-list { | ||
background: #333; | ||
border: 1px solid #333; | ||
} | ||
|
||
[data-theme="dark"] .icon-dropdown-list { | ||
background: #333; | ||
border: 1px solid #333; | ||
} | ||
|
||
.icon-dropdown-item { | ||
display: flex; | ||
align-items: center; | ||
padding: 8px 12px; | ||
cursor: pointer; | ||
transition: background-color 0.2s; | ||
display: flex; | ||
align-items: center; | ||
padding: 8px 12px; | ||
cursor: pointer; | ||
transition: background-color 0.2s; | ||
} | ||
|
||
.icon-dropdown-item:hover { | ||
background-color: #f5f5f5; | ||
background-color: #f5f5f5; | ||
} | ||
|
||
.dark .icon-dropdown-item:hover { | ||
background-color: #333; | ||
} | ||
|
||
[data-theme="dark"] .icon-dropdown-item:hover { | ||
background-color: #333; | ||
} | ||
|
||
.icon-preview { | ||
width: 24px; | ||
height: 24px; | ||
margin-right: 12px; | ||
width: 24px; | ||
height: 24px; | ||
margin-right: 12px; | ||
} | ||
|
||
.icon-name { | ||
font-size: 14px; | ||
color: #333; | ||
} | ||
font-size: 14px; | ||
color: #333; | ||
} | ||
|
||
.dark .icon-name { | ||
font-size: 14px; | ||
color: #fff; | ||
} | ||
|
||
[data-theme="dark"] .icon-name { | ||
font-size: 14px; | ||
color: #fff; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
|
||
setup( | ||
name="django-icon-picker", | ||
version="1.0.1", | ||
version="1.0.2", | ||
description="A custom Django model field that allows users to select icons from a predefined set.", | ||
author="Mohammed CHAHBOUN", | ||
author_email="[email protected]", | ||
|