-
Notifications
You must be signed in to change notification settings - Fork 384
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make django-ace (toolbar) support dark mode better
- Loading branch information
1 parent
2a15b48
commit c94db6e
Showing
15 changed files
with
94 additions
and
77 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 was deleted.
Oops, something went wrong.
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
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
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from django_ace.widgets import AceWidget as OldAceWidget | ||
|
||
__all__ = ['AceWidget', 'AdminAceWidget'] | ||
|
||
|
||
class AceWidget(OldAceWidget): | ||
pass | ||
|
||
|
||
class AdminAceWidget(OldAceWidget): | ||
class Media: | ||
css = { | ||
'all': ['ace-dmoj.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
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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
@use "vars" as *; | ||
|
||
.django-ace-widget { | ||
display: inline-block; | ||
position: relative; | ||
> div { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
bottom: 0; | ||
} | ||
} | ||
|
||
.django-ace-widget.loading { | ||
display: none; | ||
} | ||
|
||
.django-ace-toolbar { | ||
font-size: 12px; | ||
text-align: left; | ||
color: $color_primary66; | ||
text-shadow: 0 1px 0 $color_primary0; | ||
border-bottom: 1px solid $color_primary25; | ||
background-image: -moz-linear-gradient(rgba(0,0,0,0), $color_primary10); | ||
background-image: -webkit-linear-gradient(rgba(0,0,0,0), $color_primary10); | ||
background-image: linear-gradient(rgba(0,0,0,0), $color_primary10); | ||
background-repeat: repeat-x; | ||
clear: both; | ||
overflow: hidden; | ||
} | ||
|
||
.django-ace-max_min { | ||
float: right; | ||
padding: 5px; | ||
|
||
background: url($path_to_root + '/ace/img/expand.png') no-repeat 5px 5px; | ||
@include vars-img; | ||
display: block; | ||
height: 16px; | ||
width: 16px; | ||
} | ||
|
||
.django-ace-editor { | ||
position: relative; | ||
} | ||
|
||
.django-ace-editor-fullscreen { | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
bottom: 0; | ||
right: 0; | ||
z-index: 1000; | ||
|
||
.django-ace-max_min { | ||
background-image: url($path_to_root + '/ace/img/contract.png'); | ||
@include vars-img; | ||
} | ||
} |
File renamed without changes
File renamed without changes
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 |
---|---|---|
|
@@ -19,3 +19,4 @@ | |
@use "contest"; | ||
@use "misc"; | ||
@use "select2-dmoj"; | ||
@use "ace-dmoj"; |