mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-26 19:49:26 +01:00
lots of mobile fixes
This commit is contained in:
parent
8e45f78d46
commit
a7f1cf8776
@ -16,7 +16,7 @@ Seeing the dolphin means it's working:
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
One everything is up and running, you can interact with the components. For example, to interact with Pleuston, go to:
|
Once everything is up and running, you can interact with the components. For example, to interact with Pleuston, go to:
|
||||||
|
|
||||||
[http://localhost:3000/](http://localhost:3000/)
|
[http://localhost:3000/](http://localhost:3000/)
|
||||||
|
|
||||||
|
@ -1,14 +1,23 @@
|
|||||||
@import 'variables';
|
@import 'variables';
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
padding-top: $spacer * $line-height;
|
padding-top: $spacer;
|
||||||
margin-bottom: $spacer * $line-height;
|
margin-bottom: $spacer;
|
||||||
|
|
||||||
|
@media screen and (min-width: $break-point--small) {
|
||||||
|
padding-top: $spacer * $line-height;
|
||||||
|
margin-bottom: $spacer * $line-height;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
font-size: $font-size-h1;
|
font-size: $font-size-h1 / 1.3;
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
margin-bottom: $spacer / $line-height;
|
margin-bottom: $spacer / $line-height;
|
||||||
|
|
||||||
|
@media screen and (min-width: $break-point--small) {
|
||||||
|
font-size: $font-size-h1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.lead {
|
.lead {
|
||||||
|
@ -2,10 +2,14 @@
|
|||||||
|
|
||||||
.toc {
|
.toc {
|
||||||
background: darken($brand-white, 2%);
|
background: darken($brand-white, 2%);
|
||||||
padding: $spacer;
|
padding: $spacer / 2;
|
||||||
margin-bottom: $spacer * 2;
|
margin-bottom: $spacer * 2;
|
||||||
|
|
||||||
|
@media screen and (min-width: $break-point--small) {
|
||||||
|
padding: $spacer / $line-height $spacer;
|
||||||
|
}
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
margin: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -49,6 +49,7 @@
|
|||||||
|
|
||||||
a {
|
a {
|
||||||
margin: 0 $spacer / 2;
|
margin: 0 $spacer / 2;
|
||||||
|
display: inline-block;
|
||||||
|
|
||||||
&:last-child {
|
&:last-child {
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
.headerContent {
|
.headerContent {
|
||||||
composes: content from './Content.module.scss';
|
composes: content from './Content.module.scss';
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -41,13 +40,37 @@
|
|||||||
margin-left: $spacer / 2;
|
margin-left: $spacer / 2;
|
||||||
display: none;
|
display: none;
|
||||||
|
|
||||||
@media (min-width: $break-point--small) {
|
@media (min-width: $break-point--medium) {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.headerMenu {
|
.headerMenu {
|
||||||
|
flex: 1;
|
||||||
justify-self: flex-end;
|
justify-self: flex-end;
|
||||||
|
text-align: right;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow-y: hidden;
|
||||||
|
overflow-x: auto;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
|
margin-right: -($spacer / 2);
|
||||||
|
padding-right: $spacer;
|
||||||
|
|
||||||
|
@media (min-width: $break-point--medium) {
|
||||||
|
padding-right: 0;
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&::-webkit-scrollbar,
|
||||||
|
&::-moz-scrollbar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&::-webkit-scrollbar {
|
||||||
|
width: 3px;
|
||||||
|
height: 3px;
|
||||||
|
transition: opacity .2s ease-out;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.section {
|
.section {
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
-webkit-overflow-scrolling: touch;
|
-webkit-overflow-scrolling: touch;
|
||||||
margin-left: calc(-50vw + 50%);
|
margin-left: calc(-50vw + 50%);
|
||||||
margin-right: calc(-50vw + 50%);
|
margin-right: calc(-50vw + 50%);
|
||||||
|
padding-right: $spacer;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
@media (min-width: $break-point--medium) {
|
@media (min-width: $break-point--medium) {
|
||||||
@ -18,7 +19,8 @@
|
|||||||
|
|
||||||
article {
|
article {
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
flex: 0 0 25rem;
|
flex: 0 0 90vw;
|
||||||
|
max-width: 25rem;
|
||||||
margin-left: $spacer;
|
margin-left: $spacer;
|
||||||
margin-bottom: $spacer / 4;
|
margin-bottom: $spacer / 4;
|
||||||
|
|
||||||
@ -67,7 +69,7 @@
|
|||||||
|
|
||||||
.repositoryCategoryTitle {
|
.repositoryCategoryTitle {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
font-size: $font-size-h3;
|
font-size: $font-size-h4;
|
||||||
color: $brand-grey-light;
|
color: $brand-grey-light;
|
||||||
margin-bottom: $spacer / 2;
|
margin-bottom: $spacer / 2;
|
||||||
}
|
}
|
||||||
|
@ -103,10 +103,15 @@ ol {
|
|||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
+ li {
|
||||||
|
margin-top: $spacer / 8;
|
||||||
|
}
|
||||||
|
|
||||||
ul,
|
ul,
|
||||||
ol,
|
ol,
|
||||||
p {
|
p {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
margin-top: $spacer / 8;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -205,11 +210,17 @@ cite {
|
|||||||
blockquote,
|
blockquote,
|
||||||
blockquote > p {
|
blockquote > p {
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
|
color: lighten($brand-grey, 15%);
|
||||||
}
|
}
|
||||||
|
|
||||||
blockquote {
|
blockquote {
|
||||||
margin: 0 0 $spacer;
|
margin: 0 0 $spacer;
|
||||||
padding-left: $spacer;
|
padding-left: $spacer / 2;
|
||||||
|
border-left: .2rem solid $brand-grey-lighter;
|
||||||
|
|
||||||
|
@media screen and (min-width: $break-point--small) {
|
||||||
|
padding-left: $spacer / $line-height;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Tables
|
// Tables
|
||||||
|
@ -1,19 +1,20 @@
|
|||||||
@import 'variables';
|
@import 'variables';
|
||||||
|
|
||||||
.wrapper {
|
.wrapper {
|
||||||
@media (min-width: $break-point--medium) {
|
display: flex;
|
||||||
display: flex;
|
flex-wrap: wrap;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar {
|
.sidebar {
|
||||||
margin-top: $spacer / 2;
|
margin-top: $spacer / 2;
|
||||||
margin-bottom: $spacer / 2;
|
margin-bottom: $spacer / 2;
|
||||||
top: $spacer;
|
top: $spacer;
|
||||||
|
order: 2;
|
||||||
|
|
||||||
@media (min-width: $break-point--medium) {
|
@media (min-width: $break-point--medium) {
|
||||||
width: 27%;
|
width: 27%;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
order: 1;
|
||||||
|
|
||||||
+ .main {
|
+ .main {
|
||||||
width: 73%;
|
width: 73%;
|
||||||
@ -22,13 +23,22 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.main {
|
.main {
|
||||||
|
width: 100%;
|
||||||
background: $brand-white;
|
background: $brand-white;
|
||||||
padding: 0 $spacer;
|
padding: 0 $spacer / 2;
|
||||||
border: 1px solid $brand-grey-lighter;
|
border: 1px solid $brand-grey-lighter;
|
||||||
|
border-top: 0;
|
||||||
|
order: 1;
|
||||||
|
|
||||||
|
@media (min-width: $break-point--small) {
|
||||||
|
padding-left: $spacer;
|
||||||
|
padding-right: $spacer;
|
||||||
|
}
|
||||||
|
|
||||||
@media (min-width: $break-point--medium) {
|
@media (min-width: $break-point--medium) {
|
||||||
padding: 0 $spacer * 2;
|
padding-left: $spacer * 2;
|
||||||
border-top: 0;
|
padding-right: $spacer * 2;
|
||||||
|
order: 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user