fix: improve challenge layout on mobile (#37029)
This commit is contained in:
committed by
mrugesh
parent
a68345ae56
commit
cd27e73917
@ -59,7 +59,7 @@ class MobileLayout extends Component {
|
||||
id='challenge-page-tabs'
|
||||
onSelect={moveToTab}
|
||||
>
|
||||
<TabPane eventKey={1} title='Instructions'>
|
||||
<TabPane eventKey={1} title='Info'>
|
||||
{instructions}
|
||||
</TabPane>
|
||||
<TabPane eventKey={2} title='Code' {...editorTabPaneProps}>
|
||||
|
@ -23,6 +23,8 @@
|
||||
|
||||
#challenge-page-tabs .nav-tabs > li > a {
|
||||
padding: 5px 10px;
|
||||
text-decoration: none;
|
||||
font-size: 0.8em;
|
||||
}
|
||||
|
||||
#challenge-page-tabs .tab-content {
|
||||
@ -34,9 +36,8 @@
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
#challenge-page-tabs a {
|
||||
text-decoration: none;
|
||||
}
|
||||
#challenge-page-tabs a:hover {
|
||||
color: var(--secondary-background);
|
||||
|
||||
#challenge-page-tabs .nav-tabs > li.active > a {
|
||||
color: var(--quaternary-color);
|
||||
background-color: var(--quaternary-background);
|
||||
}
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
.tool-panel-group-mobile button,
|
||||
.tool-panel-group-mobile a {
|
||||
font-size: 16px;
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.tool-panel-group-mobile {
|
||||
@ -16,4 +16,6 @@
|
||||
|
||||
.tool-panel-group-mobile .btn-block + .btn-block {
|
||||
margin: 0 2px 0 0;
|
||||
padding-left: 8px;
|
||||
padding-right: 8px;
|
||||
}
|
||||
|
Reference in New Issue
Block a user