This repository was archived by the owner on Oct 16, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_team.sass
65 lines (58 loc) · 1.56 KB
/
_team.sass
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// Compute the necessary window width to display $n team members. Take the
// container width for $n members, remove 40px for the left-most member's left
// margin, and add 30px each side for page padding.
@function outer-width-for-n-members($n)
@return width-for-n-members($n) + 30px * 2 - 40px
// Compute the necessary container width for $n team members.
@function width-for-n-members($n)
@return (210px + 40px) * $n
.team
margin-left: -40px
> hr
background: $grey-e3
border: none
height: 1px
margin-bottom: 50px
margin-left: 40px
.team__container
+clearfix
margin: 0 auto
@media only screen and (max-width: #{outer-width-for-n-members(4) - 1})
width: width-for-n-members(3)
@media only screen and (max-width: #{outer-width-for-n-members(3) - 1})
width: width-for-n-members(2)
@media only screen and (max-width: #{outer-width-for-n-members(2) - 1})
width: width-for-n-members(1)
.team__member
float: left
height: 200px
margin-left: 40px
text-align: center
width: 210px
img
margin-bottom: 10px
> a
color: inherit
.team__member--solo
float: none
margin-left: auto
margin-right: auto
max-width: grid-width(2)
width: 100%
height: auto
margin-bottom: 50px
margin-top: -20px
.team__link
&:hover .team__img
+retina-image('../images/icon/team-ring', 88px 88px)
.team__img
+size(80px + 8px)
padding: 4px
.partners
background-color: $tan
box-shadow: inset 0 3px 4px -2px rgba($black, .4)
padding: 40px 0
margin-bottom: -$footer-margin
> .heading
text-align: center
color: $grey-93