Skip to content

Commit

Permalink
BUGFIX: Make text formatting in raw content mode visible
Browse files Browse the repository at this point in the history
This change removes the css reset which made it impossible to
see any text formatting in raw content mode.

Also the font is now set to use the Neos font instead of just arial
which matches the backend view better.
  • Loading branch information
Sebobo committed Apr 11, 2024
1 parent b641b12 commit e4c9ae9
Show file tree
Hide file tree
Showing 4 changed files with 6,635 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ prototype(Neos.Neos:RawContent.Document) < prototype(Neos.Fusion:Component) {
renderer = Neos.Neos:Page {
head {
stylesheets = afx`
<link rel="stylesheet" type="text/css" href={StaticResource.uri('Neos.Neos', 'Public/Styles/Minimal.css')}/>
<link rel="stylesheet" type="text/css" href={StaticResource.uri('Neos.Neos', 'Public/Styles/RawContentMode.css')}/>
`
}
Expand Down
16 changes: 15 additions & 1 deletion Neos.Neos/Resources/Private/Styles/RawContentMode.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
// Core variables and mixins
@import "Foundation/variables";
@import "Foundation/mixins";
@import "Constants";
@import "Mixins";
@import "Fonts";
@import "FontAwesome/fontawesome.scss";
@import "FontAwesome/brands.scss";
@import "FontAwesome/regular.scss";
@import "FontAwesome/solid.scss";
@import "Icons";
@import "Global";

// Typeplate
@import "Typeplate/VarsTypeplate";
Expand All @@ -12,6 +23,9 @@ body {
background-color: #f5f5f5;
font-size: 14px;
padding: 16px;

// Neos font definition
@include font;
}

#neos-raw-content-container {
Expand Down Expand Up @@ -83,7 +97,7 @@ body {
background-color: #f8f8f8;
border-left: 5px solid #cdcdcd;
padding: 16px;
margin-bottom: 16px;
margin: 0 0 16px;
}

.neos-raw-content-properties > dd:last-child {
Expand Down
Loading

0 comments on commit e4c9ae9

Please sign in to comment.