-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from bwaidelich/24-custom-styling-for-react-ui
Enable support for custom Form Builder Styling with the new Neos UI
- Loading branch information
Showing
14 changed files
with
210 additions
and
398 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 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
$anyContentElement: "[data-node-_node-type]"; | ||
@function select($nodeType) { | ||
@return "[data-node-_node-type=\"#{$nodeType}\"]" | ||
} | ||
|
||
@import "Includes/All"; | ||
@import "Includes/Form"; | ||
@import "Includes/Finisher"; | ||
@import "Includes/Page"; | ||
@import "Includes/Element"; | ||
@import "Includes/SelectOption"; | ||
@import "Includes/Validator"; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,16 @@ | ||
#{select("Neos.Form.Builder:ElementCollection")} { | ||
margin-top: 30px; | ||
[data-_neos-form-builder-type="Neos.Form.Builder:ElementCollection"] { | ||
margin-top: 30px; | ||
& > [data-_neos-form-builder-type] { | ||
position: relative; | ||
padding-top: 10px; | ||
} | ||
&[data-_neos-form-builder-empty-collection]:before { | ||
font: 18px FontAwesome; | ||
color: #bbb; | ||
display: inline-block; | ||
margin-top: 2px; | ||
width: 20px; | ||
height: 20px; | ||
content: "\F03A"; | ||
} | ||
} | ||
|
||
#{select("Neos.Form.Builder:ElementCollection")} > #{$anyContentElement} { | ||
position: relative; | ||
padding-top: 10px; | ||
} | ||
|
||
#{select("Neos.Form.Builder:ElementCollection")} > .neos-empty-contentcollection-overlay:before { | ||
font: 18px FontAwesome; | ||
color: #bbb; | ||
display: inline-block; | ||
margin-top: 2px; | ||
width: 20px; | ||
height: 20px; | ||
content: "\F03A"; | ||
} |
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 |
---|---|---|
@@ -1,49 +1,45 @@ | ||
#{select("Neos.Form.Builder:FinisherCollection")}, #{select("Neos.Form.Builder:FinisherCollection")} .neos-empty-contentcollection-overlay { | ||
padding-left: 20px; | ||
position: absolute; | ||
z-index: 100; | ||
right: 0; | ||
height: 20px; | ||
outline: none !important; | ||
background: #fff; | ||
vertical-align: middle; | ||
} | ||
[data-_neos-form-builder-type="Neos.Form.Builder:FinisherCollection"] { | ||
padding-left: 20px; | ||
position: absolute; | ||
z-index: 100; | ||
right: 0; | ||
height: 20px; | ||
outline: none !important; | ||
background: #fff; | ||
vertical-align: middle; | ||
|
||
#{select("Neos.Form.Builder:FinisherCollection")} .neos-empty-contentcollection-overlay:before { | ||
font: 18px FontAwesome; | ||
color: #bbb; | ||
display: inline-block; | ||
width: 20px; | ||
height: 20px; | ||
position: absolute; | ||
top: 3px; | ||
left: 2px; | ||
vertical-align: middle; | ||
content: "\F045"; | ||
} | ||
& > [data-_neos-form-builder-type] { | ||
display: inline-block; | ||
outline-offset: 1px !important; | ||
padding: 0 3px; | ||
margin: 0 1px; | ||
cursor: pointer; | ||
&:before { | ||
font: 16px FontAwesome; | ||
color: #00adee; | ||
content: "\F045"; | ||
} | ||
&[data-_neos-form-builder-type="Neos.Form.Builder:ConfirmationFinisher"]:before { | ||
content: "\F075"; | ||
} | ||
&[data-_neos-form-builder-type="Neos.Form.Builder:EmailFinisher"]:before { | ||
content: "\F003"; | ||
} | ||
&[data-_neos-form-builder-type="Neos.Form.Builder:RedirectFinisher"]:before { | ||
content: "\F061"; | ||
} | ||
} | ||
|
||
#{select("Neos.Form.Builder:FinisherCollection")} > #{$anyContentElement} { | ||
display: inline-block; | ||
outline-offset: 1px !important; | ||
padding: 0 3px; | ||
margin: 0 1px; | ||
cursor: pointer; | ||
&[data-_neos-form-builder-empty-collection]:before { | ||
font: 18px FontAwesome; | ||
color: #bbb; | ||
display: inline-block; | ||
width: 20px; | ||
height: 20px; | ||
position: absolute; | ||
top: 3px; | ||
left: 2px; | ||
vertical-align: middle; | ||
content: "\F045"; | ||
} | ||
} | ||
|
||
#{select("Neos.Form.Builder:FinisherCollection")} > #{$anyContentElement}:before { | ||
font: 16px FontAwesome; | ||
color: #00adee; | ||
content: "\F045"; | ||
} | ||
|
||
#{select("Neos.Form.Builder:FinisherCollection")} > #{select("Neos.Form.Builder:ConfirmationFinisher")}:before { | ||
content: "\F075"; | ||
} | ||
|
||
#{select("Neos.Form.Builder:FinisherCollection")} > #{select("Neos.Form.Builder:EmailFinisher")}:before { | ||
content: "\F003"; | ||
} | ||
|
||
#{select("Neos.Form.Builder:FinisherCollection")} > #{select("Neos.Form.Builder:RedirectFinisher")}:before { | ||
content: "\F061"; | ||
} |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#{select("Neos.Form.Builder:NodeBasedForm")} { | ||
position: relative; | ||
padding-top: 20px; | ||
} | ||
[data-_neos-form-builder-type="Neos.Form.Builder:NodeBasedForm"] { | ||
position: relative; | ||
padding-top: 20px; | ||
} |
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 |
---|---|---|
@@ -1,33 +1,30 @@ | ||
#{select("Neos.Form.Builder:PageCollection")} { | ||
margin-top: 30px; | ||
[data-_neos-form-builder-type="Neos.Form.Builder:PageCollection"] { | ||
margin-top: 30px; | ||
& > [data-_neos-form-builder-type] { | ||
position: relative; | ||
margin-top: 20px; | ||
padding-top: 20px; | ||
border-top: 1px solid #bbb; | ||
&:before { | ||
font: 18px FontAwesome; | ||
color: #bbb; | ||
display: inline-block; | ||
position: absolute; | ||
top: -10px; | ||
background-color: white; | ||
left: 0; | ||
width: 23px; | ||
height: 20px; | ||
content: "\F016"; | ||
} | ||
} | ||
&[data-_neos-form-builder-empty-collection]:before { | ||
font: 18px FontAwesome; | ||
color: #bbb; | ||
display: inline-block; | ||
margin-top: 2px; | ||
width: 20px; | ||
height: 20px; | ||
content: "\F07C"; | ||
} | ||
} | ||
|
||
#{select("Neos.Form.Builder:PageCollection")} > #{$anyContentElement} { | ||
position: relative; | ||
margin-top: 20px; | ||
padding-top: 20px; | ||
border-top: 1px solid #bbb; | ||
} | ||
|
||
#{select("Neos.Form.Builder:PageCollection")} > #{$anyContentElement}:before { | ||
font: 18px FontAwesome; | ||
color: #bbb; | ||
display: inline-block; | ||
position: absolute; | ||
top: -10px; | ||
background-color: white; | ||
left: 0; | ||
width: 23px; | ||
height: 20px; | ||
content: "\F016"; | ||
} | ||
|
||
#{select("Neos.Form.Builder:PageCollection")} > .neos-empty-contentcollection-overlay:before { | ||
font: 18px FontAwesome; | ||
color: #bbb; | ||
display: inline-block; | ||
margin-top: 2px; | ||
width: 20px; | ||
height: 20px; | ||
content: "\F07C"; | ||
} |
56 changes: 26 additions & 30 deletions
56
Resources/Private/Styles/scss/Includes/_SelectOption.scss
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 |
---|---|---|
@@ -1,31 +1,27 @@ | ||
#{select("Neos.Form.Builder:SelectOptionCollection")}, #{select("Neos.Form.Builder:SelectOptionCollection")} .neos-empty-contentcollection-overlay { | ||
outline: none !important; | ||
text-align: right; | ||
margin-bottom: 10px; | ||
vertical-align: middle; | ||
[data-_neos-form-builder-type="Neos.Form.Builder:SelectOptionCollection"] { | ||
outline: none !important; | ||
text-align: right; | ||
margin-bottom: 10px; | ||
vertical-align: middle; | ||
& > [data-_neos-form-builder-type] { | ||
display: inline-block; | ||
outline-offset: 1px !important; | ||
padding: 0 3px; | ||
margin: 0 1px; | ||
cursor: pointer; | ||
&:before { | ||
font: 16px FontAwesome; | ||
color: #00adee; | ||
content: "\F28E"; | ||
} | ||
} | ||
&[data-_neos-form-builder-empty-collection]:before { | ||
font: 16px FontAwesome; | ||
color: #bbb; | ||
outline: none; | ||
display: inline-block; | ||
height: 18px; | ||
vertical-align: middle; | ||
content: "\F0CA"; | ||
} | ||
} | ||
|
||
|
||
#{select("Neos.Form.Builder:SelectOptionCollection")} .neos-empty-contentcollection-overlay:before { | ||
font: 16px FontAwesome; | ||
color: #bbb; | ||
outline: none; | ||
display: inline-block; | ||
height: 18px; | ||
vertical-align: middle; | ||
content: "\F0CA"; | ||
} | ||
|
||
#{select("Neos.Form.Builder:SelectOptionCollection")} #{$anyContentElement} { | ||
display: inline-block; | ||
outline-offset: 1px !important; | ||
padding: 0 3px; | ||
margin: 0 1px; | ||
cursor: pointer; | ||
} | ||
|
||
#{select("Neos.Form.Builder:SelectOptionCollection")} #{$anyContentElement}:before { | ||
font: 16px FontAwesome; | ||
color: #00adee; | ||
content: "\F28E"; | ||
} |
Oops, something went wrong.