🎨 Correction du style du dictionnaire des mécanismes

pull/138/head
mama 2017-11-24 17:36:17 +01:00
parent e803d63806
commit 1c2784ceef
2 changed files with 13 additions and 10 deletions

View File

@ -29,8 +29,8 @@ export let AttachDictionary = dictionary => Decorated =>
<div style={{display: 'inline-block'}} className="dictionaryWrapper">
<Decorated ref={decorated => this.decorated = decorated} {...this.props} explain={this.explain}/>
{explanation &&
<div className="dictionaryPanelWrapper" onClick={() => this.setState({term: null, explanation: null})}>
<div className="dictionaryPanel"
<div id="dictionaryPanelWrapper" onClick={() => this.setState({term: null, explanation: null})}>
<div id="dictionaryPanel"
onClick={e => {e.preventDefault(); e.stopPropagation()}}
dangerouslySetInnerHTML={{__html: this.renderExplanationMarkdown(explanation, term)}}>
</div>

View File

@ -1,5 +1,5 @@
.dictionaryPanelWrapper {
#dictionaryPanelWrapper {
position: fixed;
top: 0;
left: 0;
@ -8,32 +8,35 @@
background: rgba(255, 255, 255, 0.86);
z-index: 1;
}
.dictionaryPanel {
#dictionaryPanel {
background: white;
position: fixed;
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%);
width: 33%;
width: 70%;
max-width: 40em;
border: 2px solid #333350;
margin: 1em;
padding: 0em 1.5em;
min-height: 6em;
border-radius: .3em;
}
.dictionaryPanel h3 {
color: #333350
#dictionaryPanel h3 {
color: #333350;
font-weight: bold;
font-size: 125%;
}
.dictionaryPanel blockquote {
#dictionaryPanel blockquote {
font-style: italic;
border-left: 4px solid #eee;
padding-left: 1em;
margin-left: 0;
}
.dictionaryPanel blockquote p {
#dictionaryPanel blockquote p {
color: #666;
}
.dictionaryPanel code {
#dictionaryPanel code {
border: 1px solid #aaa;
padding: .05em .3em;
border-radius: .3em;