mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 00:21:20 -05:00
style tweaks
This commit is contained in:
parent
55163d2c86
commit
cca9b4a7ed
2 changed files with 64 additions and 22 deletions
|
@ -105,6 +105,11 @@ var Explore = injectIntl(React.createClass({
|
|||
return (
|
||||
<a href={'/explore/' + type + '/' + this.props.category + '/'}>
|
||||
<li className={classes}>
|
||||
{this.props.itemType === type ? [
|
||||
<img src={'/svgs/explore/' + type + '-active.svg'} className={'tab-icon ' + type} />
|
||||
] : [
|
||||
<img src={'/svgs/explore/' + type + '-inactive.svg'} className={'tab-icon ' + type} />
|
||||
]}
|
||||
<FormattedMessage id={'general.' + type} />
|
||||
</li>
|
||||
</a>
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
$base-bg: $ui-white;
|
||||
|
||||
#view {
|
||||
background-color: $ui-gray;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
|
@ -45,43 +46,79 @@ $base-bg: $ui-white;
|
|||
}
|
||||
}
|
||||
|
||||
.categories {
|
||||
display: inline-block;
|
||||
background-color: $ui-gray;
|
||||
padding-left: 10px;
|
||||
width: calc(100% - 10px);
|
||||
justify-content: left;
|
||||
.tab-background {
|
||||
box-shadow: 1px 0 1px $box-shadow-gray;
|
||||
background-color: $ui-white;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.tabs {
|
||||
background-color: $ui-white;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
|
||||
li {
|
||||
opacity: .75;
|
||||
background-color: $ui-white;
|
||||
color: $header-gray;
|
||||
|
||||
&:hover {
|
||||
opacity: 1;
|
||||
border-color: $active-dark-gray;
|
||||
}
|
||||
margin: 0;
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
width: $cols2;
|
||||
text-align: center;
|
||||
|
||||
&.active {
|
||||
opacity: 1;
|
||||
border-color: $active-dark-gray;
|
||||
border-bottom: 3px solid $ui-aqua;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
opacity: 1;
|
||||
border-color: $active-dark-gray;
|
||||
&:active {
|
||||
box-shadow: none;
|
||||
padding: .75em 1.5em;
|
||||
}
|
||||
|
||||
.tab-icon {
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
|
||||
&.projects {
|
||||
margin-bottom: 4px;
|
||||
width: 20px;
|
||||
}
|
||||
|
||||
&.studios {
|
||||
width: 24px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.categories {
|
||||
border-bottom: 1px solid $ui-border;
|
||||
width: 58.75rem;
|
||||
justify-content: center;
|
||||
|
||||
li {
|
||||
border: 0;
|
||||
background-color: $ui-dark-gray;
|
||||
color: $ui-light-gray;
|
||||
|
||||
&.active {
|
||||
opacity: 1;
|
||||
background-color: $ui-aqua;
|
||||
color: $ui-white;
|
||||
}
|
||||
|
||||
&:active {
|
||||
padding: .75em 1.5em;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#projectBox {
|
||||
border-top: 2px solid;
|
||||
border-color: $active-gray;
|
||||
background-color: $ui-gray;
|
||||
padding-bottom: 30px;
|
||||
width: 100%;
|
||||
|
||||
.grid .flex-row {
|
||||
width: $cols12;
|
||||
justify-content: space-around;
|
||||
}
|
||||
}
|
||||
|
@ -89,7 +126,7 @@ $base-bg: $ui-white;
|
|||
.load button {
|
||||
outline: None;
|
||||
border: None;
|
||||
background-color: $ui-white;
|
||||
background-color: $ui-gray;
|
||||
padding: 0;
|
||||
|
||||
li {
|
||||
|
|
Loading…
Reference in a new issue