This repository has been archived by the owner on Feb 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding Rich Editor to the playground
Summary: This PR brings Rich editor to the playground - Integrated Rich Editor on the playground - Adding some basic styling ![draft-playground](https://user-images.githubusercontent.com/1042131/37007830-28ccc696-2094-11e8-8ee8-23ba18f333c5.png) Closes #1680 Differential Revision: D7174440 fbshipit-source-id: 5e0a76200c5499f45602b6b70157ad2f74b34950
- Loading branch information
1 parent
73e5a9c
commit 227d125
Showing
6 changed files
with
514 additions
and
65 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,142 @@ | ||
:root { | ||
--nav-main-height: 50px; | ||
--main-background: #f7f7f7; | ||
} | ||
|
||
.App { | ||
text-align: center; | ||
} | ||
|
||
.App-logo { | ||
animation: App-logo-spin infinite 20s linear; | ||
height: 80px; | ||
.playground-main select, | ||
.playground-main button { | ||
color: #fff; | ||
font-size: 12px; | ||
font-weight: bold; | ||
border: none; | ||
padding: 0px 10px; | ||
height: 24px; | ||
border-radius: 4px; | ||
} | ||
|
||
.playground-main select { | ||
background: #843131; | ||
} | ||
|
||
.playground-main button { | ||
background: #3B3738; | ||
margin-left: 10px; | ||
} | ||
|
||
.playground-main button:hover { | ||
background: #843131; | ||
} | ||
|
||
.playground-main select:hover, | ||
.playground-main button:hover { | ||
cursor: pointer; | ||
} | ||
|
||
.nav-main { | ||
*zoom: 1; | ||
background: #3B3738; | ||
color: #fafafa; | ||
position: fixed; | ||
top: 0; | ||
height: var(--nav-main-height); | ||
box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); | ||
width: 100%; | ||
z-index: 100; | ||
padding: 0 15px; | ||
} | ||
|
||
.nav-main:before, .nav-main:after { | ||
content: " "; | ||
display: table; | ||
} | ||
|
||
.nav-main:after { | ||
clear: both; | ||
} | ||
|
||
.nav-main a { | ||
color: #e9e9e9; | ||
text-decoration: none; | ||
} | ||
|
||
.nav-main .nav-site { | ||
float: right; | ||
margin: 0 20px 0 0; | ||
} | ||
|
||
.nav-main .nav-site li { | ||
margin: 0; | ||
} | ||
|
||
.nav-main .nav-site a { | ||
padding: 0 8px; | ||
text-transform: uppercase; | ||
letter-spacing: 1px; | ||
line-height: 50px; | ||
display: inline-block; | ||
height: 50px; | ||
color: #aaa; | ||
} | ||
|
||
.nav-main .nav-site a:hover { | ||
color: #fafafa; | ||
} | ||
|
||
.nav-main .nav-site a.active { | ||
color: #fafafa; | ||
border-bottom: 3px solid #C15757; | ||
background: #333; | ||
} | ||
|
||
.nav-main .nav-home { | ||
color: #fafafa; | ||
font-size: 24px; | ||
line-height: 50px; | ||
} | ||
|
||
.nav-home a { | ||
color: #C15757; | ||
} | ||
|
||
.nav-home img { | ||
vertical-align: -17px; | ||
margin-right: 4px; | ||
width: 50px; | ||
height: 50px; | ||
} | ||
|
||
.nav-main ul { | ||
display: inline; | ||
} | ||
|
||
.nav-main li { | ||
display: inline; | ||
} | ||
|
||
.App-header { | ||
background-color: #222; | ||
height: 150px; | ||
padding: 20px; | ||
color: white; | ||
.playground-main { | ||
background: var(--main-background); | ||
margin-top: var(--nav-main-height); | ||
display: flex; | ||
height: calc(100vh - var(--nav-main-height)); | ||
display: flex; | ||
} | ||
|
||
.App-title { | ||
font-size: 1.5em; | ||
.playground-raw-preview { | ||
padding: 10px 20px; | ||
} | ||
|
||
.App-intro { | ||
font-size: large; | ||
/** | ||
* Third-party style overwrites | ||
*/ | ||
.panelWrapper { | ||
overflow-y: auto !important; | ||
} | ||
|
||
@keyframes App-logo-spin { | ||
from { transform: rotate(0deg); } | ||
to { transform: rotate(360deg); } | ||
.playground-raw-preview ul { | ||
/** sad :( but seems to not be a way to overwrite that by configuration */ | ||
background: var(--main-background) !important; | ||
} |
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
Oops, something went wrong.