style(Settings): Improve mobile responsiveness of settings page
added flex wrap to many of the flexed items targeted at mobile with media queries so they would properly collapse. Also off set the -15px horizontal margins added by react bootstrap which made much of the text touch the side of the screen. BREAKING CHANGE: none
This commit is contained in:
committed by
mrugesh mohapatra
parent
436c96966a
commit
5b1278a725
@ -337,6 +337,9 @@ p.stats {
|
|||||||
max-width: 400px;
|
max-width: 400px;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
|
@media (max-width: 450px) {
|
||||||
|
max-width: 90vw;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
|
@ -98,6 +98,7 @@ export class Settings extends React.Component {
|
|||||||
</Button>
|
</Button>
|
||||||
</FullWidthRow>
|
</FullWidthRow>
|
||||||
<h1 className='text-center'>{ `Account Settings for ${username}` }</h1>
|
<h1 className='text-center'>{ `Account Settings for ${username}` }</h1>
|
||||||
|
<div className='offset-negative-row'>
|
||||||
<AboutSettings />
|
<AboutSettings />
|
||||||
<Spacer />
|
<Spacer />
|
||||||
<PrivacySettings />
|
<PrivacySettings />
|
||||||
@ -113,6 +114,7 @@ export class Settings extends React.Component {
|
|||||||
<CertificationSettings />
|
<CertificationSettings />
|
||||||
<Spacer />
|
<Spacer />
|
||||||
<DangerZone />
|
<DangerZone />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
@ns: toggle;
|
@ns: toggle;
|
||||||
|
|
||||||
.@{ns}-container > .btn-group {
|
.@{ns}-container > .btn-group {
|
||||||
|
min-width: 180px;
|
||||||
float: right;
|
float: right;
|
||||||
.btn {
|
.btn {
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
|
@ -28,6 +28,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.offset-negative-row{
|
||||||
|
margin-right: 15px;
|
||||||
|
margin-left: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
.@{ns}-container {
|
.@{ns}-container {
|
||||||
.center(@value: @container-xl, @padding: @grid-gutter-width);
|
.center(@value: @container-xl, @padding: @grid-gutter-width);
|
||||||
|
|
||||||
@ -81,6 +86,10 @@
|
|||||||
.btn-group > label {
|
.btn-group > label {
|
||||||
margin: 10px 0;
|
margin: 10px 0;
|
||||||
}
|
}
|
||||||
|
@media (max-width: 450px){
|
||||||
|
flex-wrap: wrap;
|
||||||
|
border-bottom: 1px solid #e0e0e0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
label {
|
label {
|
||||||
@ -104,6 +113,10 @@
|
|||||||
|
|
||||||
input, textarea {
|
input, textarea {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
|
margin: 5px 0;
|
||||||
|
}
|
||||||
|
@media (max-width: 450px) {
|
||||||
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.edit-preview-tabs {
|
.edit-preview-tabs {
|
||||||
|
Reference in New Issue
Block a user