Files
blender-cloud/src/styles/_homepage.sass

503 lines
8.6 KiB
Sass
Raw Normal View History

2018-09-06 13:03:40 +02:00
.title-underline
padding-bottom: 5px
position: relative
margin-bottom: 20px
2018-09-06 13:03:40 +02:00
&:before
background-color: $primary
content: ' '
display: block
2018-09-06 13:03:40 +02:00
height: 2px
top: 125%
position: absolute
width: 50px
nav#nav-tabs,
nav#sub-nav-tabs
ul#nav-tabs__list,
ul#sub-nav-tabs__list
margin: 0
padding: 0
list-style: none
border-bottom: thin solid $color-background
+clearfix
li.nav-tabs__list-tab
float: left
border: none
border-bottom: 3px solid transparent
color: $color-text-dark-primary
user-select: none
2018-09-06 13:03:40 +02:00
&:hover
border-color: rgba($color-secondary, .3)
cursor: pointer
color: $color-text-dark
a
color: $color-text-dark
a
2018-09-06 13:03:40 +02:00
display: block
text-decoration: none
padding: 10px 15px 5px
color: $color-text-dark-primary
2018-09-06 13:03:40 +02:00
i
margin-right: 5px
color: $color-text-dark-secondary
font-size: .9em
2018-09-06 13:03:40 +02:00
&.pi-blender
margin-right: 10px
2018-09-06 13:03:40 +02:00
span
color: $color-text-dark-hint
margin-left: 5px
2018-09-06 13:03:40 +02:00
&.active
border-color: $color-secondary
color: $color-secondary-dark
a, i
color: $color-secondary-dark
2018-09-06 13:03:40 +02:00
&.disabled
border-color: $color-background-light
color: $color-text-dark-hint
cursor: default
a, i
color: $color-text-dark-hint
2018-09-06 13:03:40 +02:00
&:hover
border-color: $color-background-light
pointer-events: none
2018-09-06 13:03:40 +02:00
.dashboard-container
word-break: break-word
2018-09-06 13:03:40 +02:00
section.stream
ul.activity-stream__list
$activity-stream-thumbnail-size: 110px
2018-09-06 13:03:40 +02:00
> li
position: relative
display: flex
padding: 10px 0
overflow: hidden
border-top: thin solid $color-background-dark
2018-09-06 13:03:40 +02:00
&:first-child
border: none
2018-09-06 13:03:40 +02:00
&.active .activity-stream__list-details .title
color: $color-primary
2018-09-06 13:03:40 +02:00
&:hover
.title
text-decoration: underline
&.video
a.image
&:hover
i
font-size: 3.5em
img
2018-09-06 13:03:40 +02:00
opacity: .9
img
opacity: .7
z-index: 0
transition: opacity 150ms ease-in-out
2018-09-06 13:03:40 +02:00
i
+position-center-translate
z-index: 1
color: rgba(white, .6)
font-size: 3em
transition: font-size 100ms ease-in-out
2018-09-06 13:03:40 +02:00
&.comment
.activity-stream__list-details
padding: 0
.title
color: $color-text-dark
padding: 7px 10px 2px 10px
font-size: 1em
margin: 0
2018-09-06 13:03:40 +02:00
ul.meta
+list-meta
font-size: .9em
padding: 0 10px 7px 10px
2018-09-06 13:03:40 +02:00
li
&.where-parent:before
content: '\e83a'
font-family: 'pillar-font'
2018-09-06 13:03:40 +02:00
&.what:before
display: none
2018-09-06 13:03:40 +02:00
&.post
.activity-stream__list-thumbnail
2018-09-06 13:03:40 +02:00
border-color: $node-type-post
background-color: $node-type-post
.activity-stream__list-details .title
color: darken($node-type-post, 15%)
font:
size: 1.3em
weight: 500
2018-09-06 13:03:40 +02:00
&.asset, &.comment, &.post
&:hover
cursor: pointer
&.empty
display: none
color: $color-text-dark-primary
padding: 20px
text-align: center
span
color: $color-primary
&:hover
text-decoration: underline
cursor: pointer
2018-09-06 13:03:40 +02:00
&.with-picture
min-height: $activity-stream-thumbnail-size
2018-09-06 13:03:40 +02:00
.activity-stream__list-thumbnail
background-color: black
width: $activity-stream-thumbnail-size * 1.69
min-width: $activity-stream-thumbnail-size * 1.69
.activity-stream__list-thumbnail-icon
position: absolute
top: 0
left: 0
right: 0
bottom: 0
font-size: 1.3em
text-shadow: 1px 1px 0 rgba(black, .2)
background-image: linear-gradient(10deg, rgba(black, .5) 0%, transparent 40%)
2018-09-06 13:03:40 +02:00
i
position: absolute
bottom: -8px
left: 20px
top: initial
right: initial
color: white
2018-09-06 13:03:40 +02:00
.activity-stream__list-thumbnail
position: relative
display: flex
justify-content: center
align-items: center
overflow: hidden
width: 35px
height: auto
min-width: 35px
min-height: auto
2018-09-06 13:03:40 +02:00
+media-xs
display: none
2018-09-06 13:03:40 +02:00
&.image i
color: $node-type-asset_image
&.file i
color: $node-type-asset_file
&.video i
color: $node-type-asset_video
2018-09-06 13:03:40 +02:00
i
+position-center-translate
left: 23px
top: 21px
font-size: 1.1em
2018-09-06 13:03:40 +02:00
img
max-height: $activity-stream-thumbnail-size
+position-center-translate
2018-09-06 13:03:40 +02:00
.activity-stream__list-details
display: flex
flex-direction: column
justify-content: space-around
flex: 1
overflow: hidden
position: relative
max-width: 100%
padding: 10px 0
2018-09-06 13:03:40 +02:00
+media-xs
margin-left: 0
2018-09-06 13:03:40 +02:00
.ribbon
+ribbon
right: -47px
top: 5px
font-size: 12px
2018-09-06 13:03:40 +02:00
span
padding: 1px 50px
2018-09-06 13:03:40 +02:00
.title
padding: 0 10px
color: $color-text-dark
2018-09-06 13:03:40 +02:00
span
@include badge(hsl(hue($color-success), 60%, 45%), 3px)
font-size: .7em
padding: 1px 5px
margin-right: 5px
2018-09-06 13:03:40 +02:00
section.comments
padding: 0 15px 5px
2018-09-06 13:03:40 +02:00
ul
padding: 0
2018-09-06 13:03:40 +02:00
> ul
list-style-type: none
margin: 10px 0 0
2018-09-06 13:03:40 +02:00
> li
+text-overflow-ellipsis
border-top: thin solid $color-background-dark
padding: 10px 0
2018-09-06 13:03:40 +02:00
&:first-child
border: none
2018-09-06 13:03:40 +02:00
> a
+text-overflow-ellipsis
color: $color-text
display: block
padding-bottom: 5px
2018-09-06 13:03:40 +02:00
section.random-asset
border-bottom: thin solid $color-background-dark
2018-09-06 13:03:40 +02:00
ul.random-asset__list
list-style: none
padding: 0
2018-09-06 13:03:40 +02:00
> li
align-items: center
border-top: thin solid $color-background
display: flex
padding: 7px 0
position: relative
overflow: hidden
2018-09-06 13:03:40 +02:00
&:first-child
border-top: none
2018-09-06 13:03:40 +02:00
.ribbon
+ribbon
right: -47px
top: 5px
font:
size: 12px
weight: 500
2018-09-06 13:03:40 +02:00
z-index: 1
2018-09-06 13:03:40 +02:00
span
padding: 1px 50px
2018-09-06 13:03:40 +02:00
.random-asset__list-thumbnail
background-color: $color-background
display: block
2018-09-06 13:03:40 +02:00
height: 50px
margin-right: 15px
min-height: 50px
min-width: 50px
overflow: hidden
position: relative
2018-09-06 13:03:40 +02:00
width: 50px
img
width: 100%
2018-09-06 13:03:40 +02:00
i
+position-center-translate
font-size: 1.6em
color: $color-text-light
&.image
background-color: $node-type-asset_image
&.file
background-color: $node-type-asset_file
font-size: .8em
&.video
background-color: $node-type-asset_video
font-size: .8em
&.None
background-color: $node-type-group
.random-asset__list-details
.title
display: block
font-size: 1em
color: $color-text-dark-primary
2018-09-06 13:03:40 +02:00
&:hover
color: $color-primary
2018-09-06 13:03:40 +02:00
ul.meta
+list-meta
padding-top: 5px
font-size: .9em
2018-09-06 13:03:40 +02:00
li
&:before
left: -5px
&.what
text-transform: capitalize
2018-09-06 13:03:40 +02:00
&.featured
align-items: flex-start
flex-direction: column
padding: 0
2018-09-06 13:03:40 +02:00
a.title
font-size: 1.1em
padding: 10px 0 5px
display: block
color: $color-text
2018-09-06 13:03:40 +02:00
&:hover
color: $color-primary
2018-09-06 13:03:40 +02:00
a.random-asset__thumbnail
display: block
position: relative
2018-09-06 13:03:40 +02:00
&.video
background-color: black
img
opacity: .7
img
2018-09-06 13:03:40 +02:00
transition: opacity 150ms ease-in-out
width: 100%
2018-09-06 13:03:40 +02:00
max-width: 100%
i
+position-center-translate
2018-09-06 13:03:40 +02:00
color: white
font-size: 3em
text-shadow: 0 0 25px black
transition: font-size 150ms ease-in-out
2018-09-06 13:03:40 +02:00
&:hover
i
2018-09-06 13:03:40 +02:00
font-size: 3.5em
img
opacity: .85
2018-09-06 13:03:40 +02:00
ul.meta
+list-meta
padding-bottom: 10px
section.announcement
+container-box
margin-left: 15px
margin-right: 15px
.header-icons
display: flex
align-items: center
justify-content: center
padding: 20px 0 5px 0
i
font-size: 2.5em
color: $color-info
&.pi-heart-filled
color: $color-danger
margin-left: 5px
img.header
width: 100%
margin: 0 auto
border-top-left-radius: 3px
border-top-right-radius: 3px
iframe
width: 100%
position: relative
left: 15px
margin: 25px auto
+media-sm
height: 500px
+media-md
height: 520px
+media-lg
height: 580px
.text
padding: 15px
.title
padding-bottom: 10px
+media-xs
font-size: 1.4em
strong
color: $color-primary-dark
a
color: $color-text-dark-primary
.lead
font-size: 1em
+list-bullets
ul
margin-top: 10px
padding-left: 10px
hr
border: none
height: 1px
width: 100%
margin: 10px 0
background-color: $color-background
clear: both
+media-xs
padding-left: 10px
.buttons
margin: 15px auto 0 auto
display: flex
align-items: center
justify-content: space-around
flex-wrap: wrap
body.homepage
2018-09-06 13:03:40 +02:00
.blog
// Custom tweak to Bootstrap grid for the only case when
// the post is inside a column (it's usually centered in the page).
.col-md-9
flex: 1
max-width: 100%
2018-09-06 13:03:40 +02:00
.jumbotron
padding-top: 6em
padding-bottom: 6em
*
font-size: $h1-font-size
2018-09-06 13:03:40 +02:00
.lead
font-size: $font-size-base