Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanhogan committed Sep 8, 2018
1 parent 687e2e9 commit 813e015
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 13 deletions.
10 changes: 8 additions & 2 deletions src/components/sections/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,16 @@ class Sections extends Component {
key={index}
href={`#${section.anchor}`}
onClick={() => this.setState({ open: false })}>
<span className={`section-level-${section.toclevel}`}>
<span
className={`section-level section-level-${
section.toclevel
}`}>
{section.number}.
</span>
<label dangerouslySetInnerHTML={{ __html: section.line }} />
<span
className="section-label"
dangerouslySetInnerHTML={{ __html: section.line }}
/>
</a>
))}
</nav>
Expand Down
3 changes: 0 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@ import React from 'react'
import ReactDOM from 'react-dom'
import { BrowserRouter } from 'react-router-dom'
import registerServiceWorker from './registerServiceWorker'
import initReactFastclick from 'react-fastclick'
import App from './routes/app'
import './styles/styles.css'

initReactFastclick()

ReactDOM.render(
<BrowserRouter>
<App />
Expand Down
12 changes: 7 additions & 5 deletions src/styles/_home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,14 @@
}
}

#mp-upper {
tr {
display: flex;
@media (min-width: 48rem) {
#mp-upper {
tr {
display: flex;

td {
flex: 50%;
td {
flex: 50%;
}
}
}
}
Expand Down
9 changes: 6 additions & 3 deletions src/styles/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ $bar-height: 0.166rem;
top: 85%;
right: 0.75rem;
background-color: white;
width: 16rem;
max-width: calc(100vw - 1.5rem);
max-height: calc(95vh - #{$header-height});
overflow: auto;
Expand All @@ -225,6 +224,10 @@ $bar-height: 0.166rem;
color: currentColor;
text-decoration: none;
border-top: thin solid rgba(black, 0.1);
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
max-width: 36rem;

&:first-child {
border-top-width: 0;
Expand All @@ -239,7 +242,7 @@ $bar-height: 0.166rem;
background-color: rgba(black, 0.075);
}

span {
.section-level {
opacity: 0.5;
font-size: 80%;
}
Expand All @@ -254,7 +257,7 @@ $bar-height: 0.166rem;
margin-left: 1rem;
}

label {
.section-label {
font-family: $title-stack;
margin-left: 0.5rem;
}
Expand Down

0 comments on commit 813e015

Please sign in to comment.