{
display: 'none', // gets overriden at small screen sizes
cursor: 'pointer',
position: 'fixed',
- right: 20,
+ left: 20,
zIndex: 3,
borderRadius: '50%',
border: '1px solid rgba(255, 255, 255, 0.1)',
@@ -184,14 +184,14 @@ class StickyResponsiveSidebar extends Component
{
diff --git a/src/pages/index.js b/src/pages/index.js
index bc2d732fd..ab63419c4 100644
--- a/src/pages/index.js
+++ b/src/pages/index.js
@@ -54,7 +54,7 @@ class Home extends Component {
title="React – A JavaScript library for building user interfaces"
ogUrl={createOgUrl('index.html')}
/>
-
+
(
},
[media.greaterThan('xlarge')]: {
- paddingLeft: 40,
+ paddingRight: 40,
},
'&:first-child': {
- textAlign: 'right',
- paddingRight: 15,
+ textAlign: 'left',
+ paddingLeft: 15,
},
'&:nth-child(2)': {
[media.greaterThan('small')]: {
- paddingLeft: 15,
+ paddingRight: 15,
},
},
}}>
diff --git a/src/templates/components/NavigationFooter/NavigationFooter.js b/src/templates/components/NavigationFooter/NavigationFooter.js
index 9ee0e9519..ac40705b0 100644
--- a/src/templates/components/NavigationFooter/NavigationFooter.js
+++ b/src/templates/components/NavigationFooter/NavigationFooter.js
@@ -26,15 +26,15 @@ const NavigationFooter = ({next, prev, location}) => {
halign="space-between"
css={{
[media.between('small', 'medium')]: {
- paddingRight: 240,
+ paddingLeft: 240,
},
[media.between('large', 'largerSidebar')]: {
- paddingRight: 280,
+ paddingLeft: 280,
},
[media.between('largerSidebar', 'sidebarFixed', true)]: {
- paddingRight: 380,
+ paddingLeft: 380,
},
}}>
diff --git a/src/templates/components/Sidebar/Section.js b/src/templates/components/Sidebar/Section.js
index 94ad877f6..bd55f6726 100644
--- a/src/templates/components/Sidebar/Section.js
+++ b/src/templates/components/Sidebar/Section.js
@@ -46,7 +46,6 @@ class Section extends React.Component {
},
},
}}>
- {section.title}
+ {section.title}
+
{item.subitems.map(subitem => (
-
{createLink({
diff --git a/src/templates/components/Sidebar/Sidebar.js b/src/templates/components/Sidebar/Sidebar.js
index b4199931a..1e9408d4c 100644
--- a/src/templates/components/Sidebar/Sidebar.js
+++ b/src/templates/components/Sidebar/Sidebar.js
@@ -38,11 +38,11 @@ class Sidebar extends Component {
halign="stretch"
css={{
width: '100%',
- paddingLeft: 20,
+ paddingRight: 20,
position: 'relative',
[media.greaterThan('largerSidebar')]: {
- paddingLeft: 40,
+ paddingRight: 40,
},
[media.lessThan('small')]: {
diff --git a/src/theme.js b/src/theme.js
index 2e1ad7405..a4187699f 100644
--- a/src/theme.js
+++ b/src/theme.js
@@ -138,17 +138,17 @@ const sharedStyles = {
flexDirection: 'column',
[media.between('small', 'sidebarFixed')]: {
- borderLeft: '1px solid #ececec',
- marginLeft: 80,
+ borderRight: '1px solid #ececec',
+ marginRight: 80,
},
[media.between('small', 'largerSidebar')]: {
flex: '0 0 200px',
- marginLeft: 80,
+ marginRight: 80,
},
[media.between('small', 'medium')]: {
- marginLeft: 40,
+ marginRight: 40,
},
[media.greaterThan('largerSidebar')]: {
@@ -157,7 +157,7 @@ const sharedStyles = {
[media.greaterThan('sidebarFixed')]: {
position: 'fixed',
- right: 0,
+ left: 0,
width: 300,
zIndex: 2,
},
@@ -189,6 +189,7 @@ const sharedStyles = {
marginBottom: 25,
paddingLeft: 15,
paddingRight: 15,
+ direction: 'ltr',
[media.lessThan('small')]: {
marginLeft: -20,
@@ -240,6 +241,8 @@ const sharedStyles = {
'& p > code, & li > code': {
background: hex2rgba(colors.note, 0.2),
color: colors.text,
+ direction: 'ltr',
+ display: 'inline-block',
},
'& p > code, & li > code, & p > a > code, & li > a > code': {
@@ -335,7 +338,7 @@ const sharedStyles = {
marginTop: 20,
fontSize: 16,
color: colors.text,
- paddingLeft: 20,
+ paddingRight: 20,
'& p, & p:first-of-type': {
fontSize: 16,
@@ -352,7 +355,7 @@ const sharedStyles = {
},
'& ol, & ul': {
- marginLeft: 20,
+ marginRight: 20,
marginTop: 10,
},
},
@@ -371,10 +374,10 @@ const sharedStyles = {
'& blockquote': {
backgroundColor: hex2rgba('#ffe564', 0.3),
- borderLeftColor: colors.note,
- borderLeftWidth: 9,
- borderLeftStyle: 'solid',
- padding: '20px 45px 20px 26px',
+ borderRightColor: colors.note,
+ borderRightWidth: 9,
+ borderRightStyle: 'solid',
+ padding: '20px 26px 20px 45px',
marginBottom: 30,
marginTop: 20,
marginLeft: -30,
diff --git a/src/utils/createLink.js b/src/utils/createLink.js
index eee6db08e..0602d671f 100644
--- a/src/utils/createLink.js
+++ b/src/utils/createLink.js
@@ -102,14 +102,14 @@ const activeLinkCss = {
const activeLinkBefore = {
width: 4,
height: 25,
- borderLeft: `4px solid ${colors.brand}`,
- paddingLeft: 16,
+ borderRight: `4px solid ${colors.brand}`,
+ paddingRight: 16,
position: 'absolute',
- left: 0,
+ right: 0,
marginTop: -3,
[media.greaterThan('largerSidebar')]: {
- left: 15,
+ right: 15,
},
};