-
Notifications
You must be signed in to change notification settings - Fork 45
[FEATURE] gray badge #125
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: feature/show-maxitems-in-pagemodule
Are you sure you want to change the base?
[FEATURE] gray badge #125
Changes from 1 commit
ee36c1b
23dfe42
276fa13
57d971c
505273c
3902cad
d1d44c8
829fb6d
2b2b142
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 |
|---|---|---|
| @@ -1,34 +1,37 @@ | ||
| @charset "UTF-8"; | ||
|
|
||
| .t3-cd-badge-container { | ||
| position: relative; | ||
| .t3js-page-column .t3-cd-badge-container[data-maxitems="0"] .t3-page-ce .t3js-page-new-ce, | ||
|
Owner
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. If I understand the CSS correctly for a full column there wouldn't be any badge anymore. But one of the main purposes is to tell the editor that there is a limit and it is reached.
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. No, the Line 3-12 just removes the «new content-element» Button not the badge. The badge is always visible. We just hide it if there is no maxitems property in the backendlayout configuration. |
||
| .t3js-page-column .t3-cd-badge-container[data-maxitems="0"] .t3-page-ce .t3-page-ce-dropzone { | ||
| display: none; | ||
| } | ||
|
|
||
| .t3-cd-badge-container[data-maxitems="0"] .t3-page-ce .t3js-page-new-ce, | ||
| .t3-cd-badge-container[data-maxitems="0"] .t3-page-ce .t3-page-ce-dropzone { | ||
| display: none; | ||
| body[style="cursor: move;"] .t3js-page-column .t3-cd-badge-container[data-maxitems="0"] .t3-page-ce .t3js-page-new-ce, | ||
| body[style="cursor: move;"].t3js-page-column .t3-cd-badge-container[data-maxitems="0"] .t3-page-ce .t3-page-ce-dropzone { | ||
| display: block; | ||
| visibility: hidden; | ||
| } | ||
|
|
||
| .t3-cd-badge { | ||
| position: absolute; | ||
| left: 0; | ||
| top: 0; | ||
| transform: translate(-50%, 0); | ||
| background-color: #ff0000; | ||
| z-index: 100; | ||
| .t3-cd-badge-container:not([data-maxitems="-1"]) .t3-page-column-header { | ||
| padding-left: 25px; | ||
| } | ||
|
|
||
| .t3-cd-badge.text-bg-success { | ||
| background-color: #107c10; | ||
| color: #ffffff; | ||
| .t3-cd-badge-container:not([data-maxitems="-1"]).t3-cd-badge-container-length-2 .t3-page-column-header { | ||
| padding-left: 30px; | ||
| } | ||
|
|
||
| .t3-cd-badge.text-bg-warning { | ||
| background-color: #e8a33d; | ||
| color: #ffffff; | ||
| .t3-cd-badge-container:not([data-maxitems="-1"]).t3-cd-badge-container-length-3 .t3-page-column-header { | ||
| padding-left: 40px; | ||
| } | ||
|
|
||
| .t3-cd-badge.text-bg-danger { | ||
| background-color: #ff0000; | ||
| color: #ffffff; | ||
| .t3-cd-badge-container { | ||
| position: relative; | ||
| } | ||
|
|
||
| .t3-cd-badge { | ||
|
Owner
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. Did you tested the layout in all TYPO3 versions yet?
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. i say it in German – "verdammt – da war noch was 😳" I keep you updated after testing |
||
| position: absolute; | ||
| z-index: 1; | ||
| left: 0; | ||
| top: 21px; | ||
| background-color: #eaeaea; | ||
| color: #000000; | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.