-
-
Notifications
You must be signed in to change notification settings - Fork 223
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TASK: Move Shortcut.css from Ui to Neos
- Loading branch information
Showing
6 changed files
with
55 additions
and
47 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,23 @@ | ||
# Neos.Neos.Shortcut is given a representation for editing purposes | ||
# | ||
prototype(Neos.Neos:Shortcut) < prototype(Neos.Fusion:Component) { | ||
prototype(Neos.Neos:Shortcut) < prototype(Neos.Neos:Page) { | ||
head.stylesheets { | ||
shortcut = afx` | ||
<link rel="stylesheet" href={StaticResource.uri('Neos.Neos', 'Public/Styles/Shortcut.css')} /> | ||
` | ||
} | ||
|
||
body = afx` | ||
<div id="neos-shortcut"> | ||
<p> | ||
<Neos.Neos:Shortcut.Link /> | ||
</p> | ||
</div> | ||
` | ||
} | ||
|
||
/** @internal */ | ||
prototype(Neos.Neos:Shortcut.Link) < prototype(Neos.Fusion:Component) { | ||
targetMode = ${q(node).property('targetMode')} | ||
firstChildNode = ${q(node).children('[instanceof Neos.Neos:Document]').get(0)} | ||
target = ${q(node).property('target')} | ||
|
@@ -68,14 +85,6 @@ prototype(Neos.Neos:Shortcut) < prototype(Neos.Fusion:Component) { | |
} | ||
} | ||
|
||
[email protected] = afx` | ||
<div id="neos-shortcut"> | ||
<p> | ||
{value} | ||
</p> | ||
</div> | ||
` | ||
|
||
@cache { | ||
mode = "uncached" | ||
context { | ||
|
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#neos-shortcut { | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
background-color: $grayMedium; | ||
z-index: 9999; | ||
@include font; | ||
|
||
p { | ||
position: relative; | ||
margin: 0 auto; | ||
width: 500px; | ||
height: 60px; | ||
top: 50%; | ||
margin-top: -30px; | ||
color: #fff; | ||
font-size: 22px; | ||
line-height: 1.4; | ||
text-align: center; | ||
|
||
a { | ||
color: $blue; | ||
text-decoration: none; | ||
|
||
&:hover { | ||
color: $blueLight; | ||
} | ||
} | ||
} | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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