Add sass mixins, update experience
This commit is contained in:
parent
a4217b4953
commit
5e3a9c3b4c
35
assets/sass/_mixins.sass
Normal file
35
assets/sass/_mixins.sass
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
=from($device)
|
||||||
|
@media screen and (min-width: $device)
|
||||||
|
@content
|
||||||
|
|
||||||
|
=until($device)
|
||||||
|
@media screen and (max-width: $device - 1px)
|
||||||
|
@content
|
||||||
|
|
||||||
|
=mobile
|
||||||
|
@media screen and (max-width: $screen-tablet - 1px)
|
||||||
|
@content
|
||||||
|
|
||||||
|
=tablet
|
||||||
|
@media screen and (min-width: $screen-tablet)
|
||||||
|
@content
|
||||||
|
|
||||||
|
=tablet-only
|
||||||
|
@media screen and (min-width: $screen-tablet) and (max-width: $screen-desktop - 1px)
|
||||||
|
@content
|
||||||
|
|
||||||
|
=touch
|
||||||
|
@media screen and (max-width: $screen-desktop - 1px)
|
||||||
|
@content
|
||||||
|
|
||||||
|
=desktop
|
||||||
|
@media screen and (min-width: $screen-desktop)
|
||||||
|
@content
|
||||||
|
|
||||||
|
=desktop-only
|
||||||
|
@media screen and (min-width: $screen-desktop) and (max-width: $screen-lg - 1px)
|
||||||
|
@content
|
||||||
|
|
||||||
|
=widescreen
|
||||||
|
@media screen and (min-width: $screen-lg)
|
||||||
|
@content
|
|
@ -1,5 +1,5 @@
|
||||||
.project
|
.project-company
|
||||||
&__company--has-logo
|
&.has-logo
|
||||||
a:link,
|
a:link,
|
||||||
a:hover
|
a:hover
|
||||||
border-bottom: 0
|
border-bottom: 0
|
||||||
|
@ -8,8 +8,8 @@
|
||||||
img
|
img
|
||||||
max-width: 75%
|
max-width: 75%
|
||||||
|
|
||||||
+breakpoint($screen-sm)
|
+tablet
|
||||||
max-width: 50%
|
max-width: 50%
|
||||||
|
|
||||||
+breakpoint($screen-md)
|
+desktop
|
||||||
max-width: 33.3%
|
max-width: 33.3%
|
||||||
|
|
|
@ -2,5 +2,6 @@
|
||||||
@import '../../vendor/bower_components/compass-breakpoint/stylesheets/breakpoint'
|
@import '../../vendor/bower_components/compass-breakpoint/stylesheets/breakpoint'
|
||||||
|
|
||||||
@import 'base'
|
@import 'base'
|
||||||
|
@import 'mixins'
|
||||||
@import 'components/**/*'
|
@import 'components/**/*'
|
||||||
@import 'pages/**/*'
|
@import 'pages/**/*'
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{% if page.company %}
|
{% if page.company %}
|
||||||
{% set company = site.companies[page.company] %}
|
{% set company = site.companies[page.company] %}
|
||||||
|
|
||||||
<div class="project__company project__company--{{ company.logo ? 'has-logo' : 'no-logo' }}">
|
<div class="project-company {{ company.logo ? 'has-logo' : 'no-logo' }}">
|
||||||
<h2>Built {{ page.freelance ? 'for' : 'whilst at' }}</h2>
|
<h2>Built {{ page.freelance ? 'for' : 'whilst at' }}</h2>
|
||||||
|
|
||||||
{% if company.logo %}
|
{% if company.logo %}
|
||||||
|
|
Loading…
Reference in a new issue