Skip to content

Commit 417b02d

Browse files
committedNov 7, 2016
isolate project page styles and add fast mobile support
1 parent 059f5b2 commit 417b02d

File tree

1 file changed

+38
-19
lines changed

1 file changed

+38
-19
lines changed
 

‎style.css

+38-19
Original file line numberDiff line numberDiff line change
@@ -1801,7 +1801,6 @@ body {
18011801
overflow: hidden;
18021802
}
18031803

1804-
18051804
.project-image-container {
18061805

18071806
text-decoration: none;
@@ -1828,12 +1827,6 @@ body {
18281827
margin-bottom: 40px;
18291828
}
18301829

1831-
.project {
1832-
width: 93%;
1833-
height: 12.8vw;
1834-
margin-bottom: 120px;
1835-
}
1836-
18371830
.event-text-container {
18381831
display: inline-block;
18391832
width: 58%;
@@ -1851,13 +1844,10 @@ body {
18511844
background: #F1E5D9;
18521845
}
18531846

1854-
1855-
18561847
.upcoming-event:hover .event-title {
18571848
color: #EF6362;
18581849
}
18591850

1860-
18611851
.event-hover-strip {
18621852
position: absolute;
18631853
left: 0;
@@ -1870,9 +1860,6 @@ body {
18701860
background: #EF6362;
18711861
}
18721862

1873-
1874-
1875-
18761863
.event-title {
18771864
font-size: 1.4em;
18781865
font-family: YaleNew;
@@ -1898,10 +1885,6 @@ body {
18981885
overflow: hidden;
18991886
text-overflow: ellipsis;
19001887
}
1901-
.project-title a, .project-title a:hover, .project-title a:active, .project-title a:visited {
1902-
text-decoration: none;
1903-
color: #00356B;
1904-
}
19051888

19061889
.event-time-line {
19071890
font-family: Interstate;
@@ -1957,6 +1940,34 @@ body {
19571940
letter-spacing: .5px;
19581941
}
19591942

1943+
/***
1944+
* Projects listing page
1945+
***/
1946+
1947+
.project {
1948+
width: 44.9%;
1949+
height: 12.8vw;
1950+
margin-bottom: 120px;
1951+
display: inline-block;
1952+
}
1953+
1954+
.project-title a {
1955+
text-decoration: none;
1956+
color: #00356B;
1957+
}
1958+
1959+
.project-thumbnail a {
1960+
width: 100%;
1961+
}
1962+
1963+
.projects-container .project:nth-child(2n) {
1964+
margin-right: 9%;
1965+
}
1966+
1967+
.projects-container .project-thumbnail img {
1968+
max-width: 110%;
1969+
}
1970+
19601971
/***
19611972
* Widget area
19621973
***/
@@ -1980,7 +1991,6 @@ body {
19801991
}
19811992
}
19821993

1983-
19841994
@keyframes slideOutRight {
19851995
from {
19861996
transform: translate3d(0, 0, 0);
@@ -2281,7 +2291,8 @@ body {
22812291
* Showcase projects
22822292
***/
22832293

2284-
.showcase-project-container {
2294+
.showcase-project-container,
2295+
.projects-container {
22852296
padding: 0;
22862297
margin: 0;
22872298
position: relative;
@@ -2512,7 +2523,15 @@ body {
25122523
margin-bottom: 50px;
25132524
}
25142525

2526+
/***
2527+
* Projects listing page
2528+
***/
25152529

2530+
.project {
2531+
width: 100%;
2532+
margin-right: 0px;
2533+
height: 53vw;
2534+
}
25162535
}
25172536

25182537
/* Larger cell styles */

0 commit comments

Comments
 (0)
Please sign in to comment.