tweak style for mobile

This commit is contained in:
Nolan Lawson 2018-01-31 09:06:06 -08:00
parent eebadf8a71
commit 545d2a9d92
3 changed files with 38 additions and 11 deletions

View file

@ -15,6 +15,11 @@
:global(.settings .free-text h2) { :global(.settings .free-text h2) {
margin: 20px 0 10px; margin: 20px 0 10px;
} }
@media (max-width: 767px) {
.settings {
margin: 20px 10px;
}
}
</style> </style>
<script> <script>
import SettingsNav from './SettingsNav.html'; import SettingsNav from './SettingsNav.html';

View file

@ -1,3 +1,4 @@
<div class="settings-list-wrapper">
{{#if label}} {{#if label}}
<ul class="settings-list" aria-label="{{label}}"> <ul class="settings-list" aria-label="{{label}}">
<slot></slot> <slot></slot>
@ -7,12 +8,21 @@
<slot></slot> <slot></slot>
</ul> </ul>
{{/if}} {{/if}}
</div>
<style> <style>
.settings-list-wrapper {
margin: 20px 20px;
}
ul.settings-list { ul.settings-list {
list-style: none; list-style: none;
width: 100%; width: 100%;
border: 1px solid var(--settings-list-item-border); border: 1px solid var(--settings-list-item-border);
margin: 20px auto; margin: 0 auto;
max-width: 80%; box-sizing: border-box;
}
@media (max-width: 767px) {
.settings-list-wrapper {
margin: 20px 0;
}
} }
</style> </style>

View file

@ -55,4 +55,16 @@
text-overflow: ellipsis; text-overflow: ellipsis;
} }
@media (max-width: 767px) {
.settings-list-item a {
padding: 20px 10px;
}
.settings-list-item svg {
margin-right: 10px;
}
.settings-list-item .offset-for-icon {
margin-left: 34px;
}
}
</style> </style>