-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Illustration picker #18565
Illustration picker #18565
Changes from 1 commit
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/*! | ||
* --------------------------------------------------------------------- | ||
* | ||
* GLPI - Gestionnaire Libre de Parc Informatique | ||
* | ||
* http://glpi-project.org | ||
* | ||
* @copyright 2015-2024 Teclib' and contributors. | ||
* @licence https://www.gnu.org/licenses/gpl-3.0.html | ||
* | ||
* --------------------------------------------------------------------- | ||
* | ||
* LICENSE | ||
* | ||
* This file is part of GLPI. | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
* | ||
* --------------------------------------------------------------------- | ||
*/ | ||
|
||
.illustration-selector { | ||
padding-bottom: 7px; | ||
border-color: var(--tblr-card-border-color); | ||
box-shadow: var(--tblr-box-shadow-input) !important; | ||
border-radius: 10px !important; // Must match border radius used for tinymce | ||
|
||
&:hover { | ||
border-color: var(--tblr-secondary); | ||
cursor: pointer; | ||
} | ||
|
||
transition: border-color 0.3s; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,9 +54,10 @@ body.mce-content-body { | |
justify-content: flex-end; | ||
} | ||
|
||
.tox.tox-tinymce { | ||
border: var(--tblr-border-width) solid var(--tblr-border-color); | ||
.tox.tox-tinymce:not(.content-editable-tinymce .tox.tox-tinymce) { | ||
border: var(--tblr-border-width) solid var(--tblr-border-color) !important; | ||
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. Somewhat unrelated, I've noticed that some of tiynmce styles were not applied correctly (since I was trying to display a form field next to a tinymce field, the differences were very noticeable). Fixed it and made the selector more precise as we don't want to impact the special |
||
border-radius: var(--tblr-border-radius); | ||
box-shadow: var(--tblr-box-shadow-input) !important; | ||
} | ||
|
||
.rich_text_container { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/*! | ||
* --------------------------------------------------------------------- | ||
* | ||
* GLPI - Gestionnaire Libre de Parc Informatique | ||
* | ||
* http://glpi-project.org | ||
* | ||
* @copyright 2015-2024 Teclib' and contributors. | ||
* @licence https://www.gnu.org/licenses/gpl-3.0.html | ||
* | ||
* --------------------------------------------------------------------- | ||
* | ||
* LICENSE | ||
* | ||
* This file is part of GLPI. | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
* | ||
* --------------------------------------------------------------------- | ||
*/ | ||
|
||
.aspect-ratio-1 { | ||
aspect-ratio: 1; | ||
} | ||
|
||
.border-secondary-hover { | ||
border-color: transparent; | ||
|
||
&:hover { | ||
border-color: var(--tblr-secondary); | ||
} | ||
|
||
transition: border-color 0.3s; | ||
} | ||
|
||
// Apply the same font-size and line-height as btn-text. | ||
// Useful when replacing a btn-text content by a loading icon. | ||
.btn-text-loading { | ||
font-size: var(--tblr-btn-font-size) !important; | ||
line-height: var(--tblr-btn-line-height) !important; | ||
} | ||
|
||
.w-fit-content { | ||
width: fit-content !important; | ||
} |
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.
I need a complex selector for a case that do not seems possible with simple selectors.
I've removed this rule, but it requires us to remove usages of simple selectors so I've had to fix a few existing css rules using the automated
--fix
command.See https://stylelint.io/user-guide/rules/selector-not-notation/.
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.
Doesn't seem to be an issue. All officially supported browsers support selector lists.
https://caniuse.com/css-not-sel-list