docbrown/app/assets/stylesheets/dashboard.scss
Ben Halpern ca403ee01e
Adjust article show view css (revert sticky css) (#954)
* Adjust article show view css

* Change color subtly
2018-10-18 16:02:54 -04:00

244 lines
5 KiB
SCSS

@import 'variables';
.dashboard-container{
padding-top:80px;
padding-bottom:80px;
width:800px;
max-width:96%;
margin:auto;
h1{
font-size:30px;
font-family: $helvetica-condensed;
font-stretch:condensed;
padding-bottom: 20px;
a{
padding: 0px 20px;
border-radius: 3px;
margin-right: 18px;
display: inline-block;
color: $black;
&.active{
background: $black;
color:white;
}
}
}
.actions{
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
padding: 2% 0; /* about .dashboard-container's left / right margin */
@media screen and ( min-width: 600px ){
flex-direction: row;
}
.action{
flex-basis: 0;
flex-grow: 1;
flex-shrink: 0;
width: 100%;
color:$black;
padding:10px 0px;
border-radius:3px;
min-width:115px;
transition: background-color 250ms ease, opacity 250ms ease;
font-family: $helvetica-condensed;
font-stretch:condensed;
font-size: 1.1em;
text-align: center;
&.active{
background: $purple;
}
&:not(.active):hover{
background: $light-medium-purple;
}
&:not(:last-child) {
/* gap between actions */
margin-bottom: 8px;
@media screen and ( min-width: 600px ){
margin-bottom: 0;
margin-right: 8px;
}
}
span {
display: inline-block;
@media screen and ( min-width: 600px ) and ( max-width: 800px ){
display: block;
}
}
}
}
.dashboard-analytics-header-wrapper{
text-align: center;
margin-bottom: 28px;
}
.dashboard-analytics-header{
color:$black;
margin:5px auto;
font-size:calc(0.77em + 0.22vw);
padding: 20px 0px;
padding-left: 10px;
text-align: left;
font-family: $monospace;
border-radius: 200px;
border: 1px solid $light-medium-gray;
box-shadow: $bold-shadow;
display: inline-block;
width: 90%;
margin: 1.1%;
@media screen and ( min-width: 800px ) {
width: 43%;
margin: 1.2%;
}
span{
opacity:0.3;
}
img{
width: calc(0.9em + 1.2vw);
height: calc(0.9em + 1.2vw);
margin-right: 0.4em;
margin-left: 1.1em;
vertical-align: calc(-0.6vw - 2px);
}
&.loaded{
span{
opacity:1;
}
}
}
.video-upload-cta{
display: inline-block;
margin: 10px 0px 20px;
}
.single-article{
border: 1px solid $light-medium-gray;
box-shadow: $bold-shadow;
padding:5px 15px;
margin-bottom:13px;
border-radius:3px;
position:relative;
background: white;
a{
color: $black;
&.block-link{
display:block;
}
}
h2{
font-weight:400;
margin-bottom:5px;
margin-top:8px;
font-size:36px;
width: 100%;
img{
height: 40px;
width: 40px;
border-radius: 80px;
vertical-align: -8px;
}
.dashboard-username{
color: $medium-gray;
font-size: 0.6em;
vertical-align:0.16em;
}
}
h4{
margin-top:0px;
margin-bottom:9px;
margin-left:2px;
font-weight:300;
font-size:16px;
color:rgb(67, 78, 87);
}
.dashboard-actions{
padding: 8px 0px;
}
.pill{
background:$bold-blue;
padding:2px 14px;
border-radius:3px;
color:white;
margin-right:5px;
font-size:13px;
&.yellow{
background:$yellow;
color:$black;
}
&.green{
background: $green;
color: $black;
}
&.red{
background:$red;
}
&.black{
background: $black;
}
}
.dashboard-pageviews-indicator{
display:inline-block;
font-family: $monospace;
color: $black;
background: white;
text-align:center;
opacity:0.4;
height: 23px;
line-height: 22px;
padding: 2px 8px;
&.loaded{
opacity:1;
}
}
form{
padding: 10px 0px;
font-size: 15px;
font-family: $helvetica-condensed;
font-stretch:condensed;
select{
margin: 0px 4px;
vertical-align:2px;
}
input[type="submit"]{
border:0px;
font-size: 15px;
}
}
.single-article__details{
margin: 10px 0px;
.user{
color: $medium-gray;
}
.tag{
margin-left: 10px;
}
}
}
.no-articles{
text-align:center;
background:white;
padding: 2vw 3vw 6vw;
box-shadow: $shadow;
border-radius: 3px;
min-height: 620px;
h3{
font-size:28px;
font-weight:400;
}
a.big{
display:block;
border: 3px solid $black;
font-size:2.2em;
padding: 0.4em 0.2em;
border-radius:3px;
width: 90%;
max-width: 500px;
margin:auto;
}
img{
width: 90%;
max-width: 270px;
min-height: 350px;
}
}
}