Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Frederic Thoma
erp5
Commits
7f2a84d4
Commit
7f2a84d4
authored
Jan 29, 2018
by
Tomáš Peterka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[renderjs_ui] Harmonize padding for <label>, <input> and <p> (non-editable field)
parent
9a9b4731
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_nojqm_css.css
...emplateItem/web_page_module/rjs_gadget_erp5_nojqm_css.css
+4
-0
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/erp5css.less.txt
...teItem/portal_skins/erp5_web_renderjs_ui/erp5css.less.txt
+8
-0
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_nojqm_css.css
View file @
7f2a84d4
...
@@ -1127,6 +1127,7 @@ div[data-gadget-scope='header'] .ui-header ul {
...
@@ -1127,6 +1127,7 @@ div[data-gadget-scope='header'] .ui-header ul {
}
}
.gadget-content
.ui-field-contain
>
label
{
.gadget-content
.ui-field-contain
>
label
{
color
:
#777777
;
color
:
#777777
;
padding
:
3pt
;
}
}
.gadget-content
.ui-field-contain
>
label
.required
{
.gadget-content
.ui-field-contain
>
label
.required
{
font-weight
:
bold
;
font-weight
:
bold
;
...
@@ -1134,6 +1135,9 @@ div[data-gadget-scope='header'] .ui-header ul {
...
@@ -1134,6 +1135,9 @@ div[data-gadget-scope='header'] .ui-header ul {
.gadget-content
.ui-field-contain
>
label
.invisible
{
.gadget-content
.ui-field-contain
>
label
.invisible
{
display
:
none
;
display
:
none
;
}
}
.gadget-content
.ui-field-contain
p
{
padding
:
3pt
;
}
@media
only
screen
and
(
min-width
:
45em
)
and
(
max-width
:
85em
),
not
screen
and
(
max-width
:
85em
)
{
@media
only
screen
and
(
min-width
:
45em
)
and
(
max-width
:
85em
),
not
screen
and
(
max-width
:
85em
)
{
.gadget-content
.ui-field-contain
{
.gadget-content
.ui-field-contain
{
display
:
flex
;
display
:
flex
;
...
...
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/erp5css.less.txt
View file @
7f2a84d4
...
@@ -1307,6 +1307,9 @@ div[data-gadget-scope='header'] .ui-header {
...
@@ -1307,6 +1307,9 @@ div[data-gadget-scope='header'] .ui-header {
& > label {
& > label {
color: @grey;
color: @grey;
// padding to be aligned with <input>
padding: @half-margin-size;
// backward-compatibility: support for ERP5 field class defined in formulator configuration
// backward-compatibility: support for ERP5 field class defined in formulator configuration
&.required {
&.required {
// inform user that the field is needed by contraint, but do not prevent him to save the value
// inform user that the field is needed by contraint, but do not prevent him to save the value
...
@@ -1319,6 +1322,11 @@ div[data-gadget-scope='header'] .ui-header {
...
@@ -1319,6 +1322,11 @@ div[data-gadget-scope='header'] .ui-header {
}
}
}
}
.ui-field-contain p {
// non-editable fields are rendered using <p> so they deserve the same padding as <input>s
padding: @half-margin-size;
}
@media @tablet, @desktop {
@media @tablet, @desktop {
.ui-field-contain {
.ui-field-contain {
display: flex;
display: flex;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment