Skip to content

Commit 1e231aa

Browse files
Merge pull request #29 from MITLibraries/unified-prototyping
Updates to three display types: item detail, item browse, and search results
2 parents 24c3f1f + 659bbdf commit 1e231aa

16 files changed

Lines changed: 524 additions & 4 deletions

File tree

asset/css/base.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

asset/scss/content/_all.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
@import "breadcrumbs";
22
@import "navigation";
3+
@import "resource-list";
34
@import "search";
5+
@import "search-results";
46
@import "site-page-pagination";
57
@import "block-layout/all";
8+
@import "resource-page/all";
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
.browse-controls {
2+
align-items: center;
3+
background: $gray-l4;
4+
display: flex;
5+
flex-direction: row;
6+
justify-content: flex-start;
7+
margin-bottom: 1rem;
8+
padding: 1rem;
9+
10+
.browse-label {
11+
margin-right: 1rem;
12+
}
13+
14+
form.sorting {
15+
margin: 0;
16+
}
17+
}
18+
19+
.pagination {
20+
align-items: center;
21+
background: $gray-l4;
22+
display: flex;
23+
flex-direction: row;
24+
justify-content: space-between;
25+
margin: 0;
26+
padding: 1rem;
27+
28+
form {
29+
margin: 0;
30+
margin-right: 2rem;
31+
}
32+
33+
.row-count {
34+
margin-left: 2rem;
35+
}
36+
}
37+
38+
ul.resource-list {
39+
list-style-type: none;
40+
padding-left: unset;
41+
42+
.resource {
43+
border-top: 1px solid $gray-l3;
44+
margin: 0;
45+
46+
a {
47+
display: flow-root;
48+
margin: 0;
49+
padding: 1rem;
50+
text-align: left;
51+
text-decoration: none;
52+
53+
img {
54+
border: 1px solid $gray-l3;
55+
box-shadow: 0 0 5px $gray-l3;
56+
float: right;
57+
max-width: 100px;
58+
max-height: 200px;
59+
padding: 0.5rem;
60+
}
61+
62+
.description {
63+
display: -webkit-box;
64+
-webkit-line-clamp: 3;
65+
-webkit-box-orient: vertical;
66+
overflow: hidden;
67+
}
68+
69+
.resource-name {
70+
font-size: 1.9rem;
71+
font-weight: bold;
72+
}
73+
74+
&:focus,
75+
&:hover {
76+
background: $gray-l3;
77+
78+
img {
79+
background: $white;
80+
}
81+
82+
.resource-name {
83+
text-decoration: underline;
84+
}
85+
}
86+
}
87+
88+
&:last-child {
89+
border-bottom: 1px solid $gray-l3;
90+
}
91+
}
92+
}
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
div.results {
2+
margin-bottom: 2rem;
3+
4+
>ul {
5+
border-bottom: 1px solid $gray-l3;
6+
list-style-type: none;
7+
padding: 0;
8+
9+
li {
10+
border-top: 1px solid $gray-l3;
11+
margin: 0;
12+
padding: 0;
13+
14+
a {
15+
display: flow-root;
16+
padding: 1rem;
17+
text-decoration: none;
18+
19+
img {
20+
border: 1px solid $gray-l3;
21+
box-shadow: 0 0 5px $gray-l3;
22+
float: right;
23+
margin: 0 0 0 1rem;
24+
max-width: 10rem;
25+
max-height: 20rem;
26+
padding: 0.5rem;
27+
}
28+
29+
.resource-name {
30+
font-size: 1.9rem;
31+
}
32+
}
33+
}
34+
}
35+
36+
&.items li a {
37+
min-height: 12rem;
38+
}
39+
40+
>ul li a:focus,
41+
>ul li a:hover {
42+
background: $gray-l4;
43+
text-decoration: underline;
44+
45+
img {
46+
background: $white;
47+
}
48+
}
49+
}

asset/scss/content/block-layout/_resource.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
body .resource {
1+
body div.resource {
22
margin: 1rem;
33
padding: 0;
4-
text-align: center;
54

65
a {
76
display: block;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@import "dl";
2+
@import "linked-resources";
3+
@import "map";
4+
@import "media-embed";
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
.values-container dl,
2+
dl.resource-class,
3+
dl.item-sets,
4+
dl.site-pages {
5+
.property {
6+
align-items: start;
7+
display: grid;
8+
grid-template-columns: 1fr 4fr;
9+
gap: 1rem;
10+
margin-bottom: 2rem;
11+
12+
dt {
13+
grid-column: 1;
14+
}
15+
16+
dd {
17+
align-self: end;
18+
grid-column: 2;
19+
line-height: 1.2;
20+
margin-bottom: 0;
21+
}
22+
}
23+
}

0 commit comments

Comments
 (0)