-
Notifications
You must be signed in to change notification settings - Fork 0
Fix des positions des secteurs #60
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -470,40 +470,9 @@ | |
| &.ally12 { fill: @medium-12; } | ||
| } | ||
|
|
||
| .number { | ||
| position: absolute; | ||
| z-index: 800; | ||
| top: 0; left: 0; | ||
|
|
||
| span { | ||
| position: absolute; | ||
| color: rgba(255, 255, 255, .8); | ||
| font-size: 12px; | ||
| line-height: 22px; width: 22px; | ||
| text-align: center; | ||
| border-radius: 100%; | ||
| box-shadow: 0 0 1px white; | ||
|
|
||
| &.ally0 { background: #0A0A0A; } | ||
| &.ally1 { background: @dark-1; } | ||
| &.ally2 { background: @dark-2; } | ||
| &.ally3 { background: @dark-3; } | ||
| &.ally4 { background: @dark-4; } | ||
| &.ally5 { background: @dark-5; } | ||
| &.ally6 { background: @dark-6; } | ||
| &.ally7 { background: @dark-7; } | ||
| &.ally8 { background: @dark-8; } | ||
| &.ally9 { background: @dark-9; } | ||
| &.ally10 { background: @dark-10; } | ||
| &.ally11 { background: @dark-11; } | ||
| &.ally12 { background: @dark-12; } | ||
|
|
||
| &.active { | ||
| background: white; | ||
| color: black; | ||
| box-shadow: 0 0 10px black; | ||
| } | ||
| } | ||
| g.active polygon, g.active polygon:hover { | ||
| fill: #1b9448 !important; | ||
| stroke: #34bf68 !important; | ||
|
Collaborator
Author
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. Les !important étaient malheureusement inévitable. Quand je simplifierais le code, je pense qu'il y aura un clean à faire.
Collaborator
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. ça marche pas de soucis |
||
| } | ||
| } | ||
|
|
||
|
|
||
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.
Pour info @Kern046 j'ai fais en JS vanilla et pas JQuery car l'ajout ou de suppressions de classes ne fonctionne pas en jquery sur l'intérieur des SVG.
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.
T'as raison on va dégager Jquery dès qu'on peut !