mitlibraries-theme 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +10 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +21 -0
- data/README.md +76 -0
- data/Rakefile +10 -0
- data/app/helpers/link_helper.rb +22 -0
- data/app/views/layouts/_flash.html.erb +8 -0
- data/app/views/layouts/_global_alert.html.erb +9 -0
- data/app/views/layouts/_head.html.erb +46 -0
- data/app/views/layouts/_institute_footer.html.erb +17 -0
- data/app/views/layouts/_js_exception_handler.erb +4 -0
- data/app/views/layouts/_libraries_footer.html.erb +25 -0
- data/app/views/layouts/_site_footer.html.erb +1 -0
- data/app/views/layouts/_site_header.html.erb +17 -0
- data/app/views/layouts/_site_nav.html.erb +16 -0
- data/app/views/layouts/application.html.erb +39 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/mitlibraries/theme/version.rb +5 -0
- data/lib/mitlibraries/theme.rb +11 -0
- data/mitlibraries-theme.gemspec +29 -0
- data/vendor/assets/images/favicon.ico +0 -0
- data/vendor/assets/images/mitlib-wordmark.svg +1 -0
- data/vendor/assets/images/vi-shape7-tp.svg +1 -0
- data/vendor/assets/stylesheets/_core.scss +32 -0
- data/vendor/assets/stylesheets/elements/_content.scss +74 -0
- data/vendor/assets/stylesheets/elements/_controls.scss +156 -0
- data/vendor/assets/stylesheets/elements/_footer.scss +114 -0
- data/vendor/assets/stylesheets/elements/_forms.scss +151 -0
- data/vendor/assets/stylesheets/elements/_header.scss +92 -0
- data/vendor/assets/stylesheets/elements/_modules.scss +173 -0
- data/vendor/assets/stylesheets/elements/_tables.scss +112 -0
- data/vendor/assets/stylesheets/global/_base.scss +63 -0
- data/vendor/assets/stylesheets/global/_helpers.scss +161 -0
- data/vendor/assets/stylesheets/global/_layouts.scss +413 -0
- data/vendor/assets/stylesheets/global/_shame.scss +4 -0
- data/vendor/assets/stylesheets/global/_typography.scss +81 -0
- data/vendor/assets/stylesheets/global/_unsets.scss +29 -0
- data/vendor/assets/stylesheets/global/_variables.scss +117 -0
- data/vendor/assets/stylesheets/global/_vendor-overrides.scss +1 -0
- data/vendor/assets/stylesheets/js-elements/_expand-collapse.scss +35 -0
- data/vendor/assets/stylesheets/libraries-main.scss +17 -0
- metadata +172 -0
@@ -0,0 +1,74 @@
|
|
1
|
+
// content-specific styles
|
2
|
+
|
3
|
+
.wrap-content {
|
4
|
+
|
5
|
+
// unreset base content pieces
|
6
|
+
h1,
|
7
|
+
.hd-1 {
|
8
|
+
@extend .hd-1;
|
9
|
+
}
|
10
|
+
|
11
|
+
h2,
|
12
|
+
.hd-2 {
|
13
|
+
@extend .hd-2;
|
14
|
+
}
|
15
|
+
|
16
|
+
h3,
|
17
|
+
.hd-3 {
|
18
|
+
@extend .hd-3;
|
19
|
+
}
|
20
|
+
|
21
|
+
h4,
|
22
|
+
.hd-4 {
|
23
|
+
@extend .hd-4;
|
24
|
+
}
|
25
|
+
|
26
|
+
h5,
|
27
|
+
.hd-5 {
|
28
|
+
@extend .hd-5;
|
29
|
+
}
|
30
|
+
|
31
|
+
h6,
|
32
|
+
.hd-6 {
|
33
|
+
@extend .hd-6;
|
34
|
+
}
|
35
|
+
|
36
|
+
.subtitle {
|
37
|
+
@extend .hd-subtitle1;
|
38
|
+
}
|
39
|
+
|
40
|
+
.subtitle2 {
|
41
|
+
@extend .hd-subtitle2;
|
42
|
+
}
|
43
|
+
|
44
|
+
.subtitle3 {
|
45
|
+
@extend .hd-subtitle3;
|
46
|
+
}
|
47
|
+
|
48
|
+
li {
|
49
|
+
margin-bottom: .5em;
|
50
|
+
}
|
51
|
+
|
52
|
+
// wordpress specific classes
|
53
|
+
.title-page {
|
54
|
+
margin-bottom: 1rem;
|
55
|
+
padding: .5rem 0 1rem 0;
|
56
|
+
font-weight: $fw-bold;
|
57
|
+
}
|
58
|
+
|
59
|
+
.cta-link {
|
60
|
+
transition: background-color ease-in-out .3s;
|
61
|
+
display: inline-block;
|
62
|
+
padding: .5em;
|
63
|
+
color: $black;
|
64
|
+
font-size: $fs-large;
|
65
|
+
font-weight: $fw-bold;
|
66
|
+
text-decoration: underline;
|
67
|
+
|
68
|
+
&:hover {
|
69
|
+
background-color: $brand-secondary;
|
70
|
+
color: $white;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
|
@@ -0,0 +1,156 @@
|
|
1
|
+
|
2
|
+
.button-primary {
|
3
|
+
transition: background-color .25s, border .25s;
|
4
|
+
display: inline-block;
|
5
|
+
border: 1px solid $brand-primary;
|
6
|
+
border-radius: 3px;
|
7
|
+
padding: 5px 10px;
|
8
|
+
background-color: $brand-primary;
|
9
|
+
color: $white;
|
10
|
+
text-decoration: none;
|
11
|
+
|
12
|
+
&:hover,
|
13
|
+
&:focus {
|
14
|
+
background-color: $brand-primary-accent;
|
15
|
+
border-color: $brand-primary-accent;
|
16
|
+
color: $white;
|
17
|
+
text-decoration: none;
|
18
|
+
}
|
19
|
+
|
20
|
+
&.green {
|
21
|
+
border: 1px solid darken($black, 5%);
|
22
|
+
background-color: $black;
|
23
|
+
|
24
|
+
&:hover,
|
25
|
+
&:focus {
|
26
|
+
background-color: saturate($green-muted, 20%);
|
27
|
+
border-color: $green-muted;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
&.magenta {
|
32
|
+
border: 1px solid darken($black, 5%);
|
33
|
+
background-color: $black;
|
34
|
+
|
35
|
+
&:hover,
|
36
|
+
&:focus {
|
37
|
+
background-color: saturate($magenta-muted, 20%);
|
38
|
+
border-color: $magenta-muted;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
&.warn {
|
43
|
+
border: 1px solid darken($error, 10%);
|
44
|
+
background-color: darken($error, 5%);
|
45
|
+
|
46
|
+
&:before {
|
47
|
+
font-family: FontAwesome;
|
48
|
+
content: "\f071 ";
|
49
|
+
font-size: .8em;
|
50
|
+
margin-right: 5px;
|
51
|
+
}
|
52
|
+
|
53
|
+
&:hover,
|
54
|
+
&:focus {
|
55
|
+
background-color: saturate($error, 20%);
|
56
|
+
border-color: $error;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
.button-secondary {
|
62
|
+
transition: background-color .25s, border .25s;
|
63
|
+
display: inline-block;
|
64
|
+
border: 1px solid $gray-l2;
|
65
|
+
border-radius: 3px;
|
66
|
+
padding: 5px 10px;
|
67
|
+
background-color: transparent;
|
68
|
+
color: $black;
|
69
|
+
text-decoration: none;
|
70
|
+
|
71
|
+
&:hover,
|
72
|
+
&:focus {
|
73
|
+
background-color: $brand-primary-accent;
|
74
|
+
border-color: $brand-primary-accent;
|
75
|
+
color: $white;
|
76
|
+
text-decoration: none;
|
77
|
+
}
|
78
|
+
|
79
|
+
&.green {
|
80
|
+
color: $black;
|
81
|
+
|
82
|
+
&:hover,
|
83
|
+
&:focus {
|
84
|
+
background-color: saturate($green-muted, 20%);
|
85
|
+
border-color: $green-muted;
|
86
|
+
color: $white;
|
87
|
+
}
|
88
|
+
}
|
89
|
+
|
90
|
+
&.magenta {
|
91
|
+
color: $black;
|
92
|
+
|
93
|
+
&:hover,
|
94
|
+
&:focus {
|
95
|
+
background-color: saturate($magenta-muted, 20%);
|
96
|
+
border-color: $magenta-muted;
|
97
|
+
color: $white;
|
98
|
+
}
|
99
|
+
}
|
100
|
+
|
101
|
+
&.warn {
|
102
|
+
color: $error;
|
103
|
+
|
104
|
+
&:before {
|
105
|
+
font-family: FontAwesome;
|
106
|
+
content: "\f071 ";
|
107
|
+
font-size: .8em;
|
108
|
+
margin-right: 5px;
|
109
|
+
}
|
110
|
+
|
111
|
+
&:hover,
|
112
|
+
&:focus {
|
113
|
+
background-color: saturate($error, 20%);
|
114
|
+
border-color: $error;
|
115
|
+
color: $white;
|
116
|
+
}
|
117
|
+
}
|
118
|
+
}
|
119
|
+
|
120
|
+
.button-subtle {
|
121
|
+
@extend .button-secondary;
|
122
|
+
border: 0;
|
123
|
+
}
|
124
|
+
|
125
|
+
.button-small {
|
126
|
+
padding: 2px 10px;
|
127
|
+
}
|
128
|
+
|
129
|
+
|
130
|
+
// ruby pagination nav
|
131
|
+
.pagination {
|
132
|
+
margin: 1rem;
|
133
|
+
|
134
|
+
.page {
|
135
|
+
display: inline-block;
|
136
|
+
min-width: 3rem;
|
137
|
+
text-align: center;
|
138
|
+
}
|
139
|
+
|
140
|
+
a {
|
141
|
+
@extend .button-subtle;
|
142
|
+
}
|
143
|
+
|
144
|
+
.current {
|
145
|
+
font-weight: $fw-bold;
|
146
|
+
}
|
147
|
+
|
148
|
+
.gap {
|
149
|
+
}
|
150
|
+
|
151
|
+
.next {
|
152
|
+
}
|
153
|
+
|
154
|
+
.last {
|
155
|
+
}
|
156
|
+
}
|
@@ -0,0 +1,114 @@
|
|
1
|
+
// footer styles
|
2
|
+
|
3
|
+
.wrap-outer-footer {
|
4
|
+
background-color: $black;
|
5
|
+
color: $white;
|
6
|
+
font-size: $fs-xsmall;
|
7
|
+
}
|
8
|
+
|
9
|
+
.wrap-footer {
|
10
|
+
background: $black image-url("vi-shape7-tp.svg") no-repeat 10% center;
|
11
|
+
|
12
|
+
a {
|
13
|
+
@extend %link;
|
14
|
+
color: $white;
|
15
|
+
text-decoration: none;
|
16
|
+
}
|
17
|
+
|
18
|
+
.title {
|
19
|
+
@extend .hd-6;
|
20
|
+
margin-bottom: .8rem;
|
21
|
+
}
|
22
|
+
|
23
|
+
.wrap-list .link-sub {
|
24
|
+
display: list-item;
|
25
|
+
list-style-type: none;
|
26
|
+
margin-bottom: .65rem;
|
27
|
+
font-weight: $fw-light;
|
28
|
+
}
|
29
|
+
|
30
|
+
.logo-mit-lib {
|
31
|
+
fill: $white;
|
32
|
+
|
33
|
+
img {
|
34
|
+
max-height: 60px;
|
35
|
+
max-width: 100%;
|
36
|
+
vertical-align: baseline;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
.wrap-usergroups {
|
41
|
+
@extend .list-inline-pipe;
|
42
|
+
font-size: $fs-small;
|
43
|
+
}
|
44
|
+
|
45
|
+
.wrap-social {
|
46
|
+
|
47
|
+
p, a {
|
48
|
+
display: inline-block;
|
49
|
+
vertical-align: middle;
|
50
|
+
margin-left: .5rem;
|
51
|
+
margin-bottom: 0;
|
52
|
+
text-transform: uppercase;
|
53
|
+
font-size: $fs-xsmall;
|
54
|
+
}
|
55
|
+
|
56
|
+
svg {
|
57
|
+
height: 2em;
|
58
|
+
width: 2em;
|
59
|
+
border-radius: 50%;
|
60
|
+
padding: 0.2em;
|
61
|
+
background: $white none repeat scroll 0 0;
|
62
|
+
|
63
|
+
path {
|
64
|
+
fill: $gray-d1;
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
// footer - adjustments for slim
|
71
|
+
.wrap-footer.footer-slim {
|
72
|
+
|
73
|
+
.sitemap-libraries-abbrev a {
|
74
|
+
@extend .list-inline-pipe;
|
75
|
+
font-size: $fs-small;
|
76
|
+
}
|
77
|
+
|
78
|
+
}
|
79
|
+
|
80
|
+
// MIT footer
|
81
|
+
.wrap-outer-footer-institute {
|
82
|
+
background-color: $gray-d1;
|
83
|
+
font-size: $fs-xxsmall;
|
84
|
+
color: $gray-l3;
|
85
|
+
|
86
|
+
a {
|
87
|
+
@extend %link;
|
88
|
+
color: $white;
|
89
|
+
}
|
90
|
+
|
91
|
+
.link-logo-mit {
|
92
|
+
display: inline-block;
|
93
|
+
|
94
|
+
.logo-mit {
|
95
|
+
fill: $gray-l2;
|
96
|
+
|
97
|
+
.color {
|
98
|
+
fill: $white;
|
99
|
+
}
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
.about-mit {
|
104
|
+
@extend .list-inline-pipe;
|
105
|
+
display: inline-block;
|
106
|
+
color: $gray-l3;
|
107
|
+
text-transform: uppercase;
|
108
|
+
}
|
109
|
+
|
110
|
+
.license {
|
111
|
+
margin-top: 1rem;
|
112
|
+
color: $gray-l3;
|
113
|
+
}
|
114
|
+
}
|
@@ -0,0 +1,151 @@
|
|
1
|
+
// base form styles
|
2
|
+
|
3
|
+
form {
|
4
|
+
margin: 1.5rem 0;
|
5
|
+
|
6
|
+
fieldset {
|
7
|
+
margin-top: 1.5rem;
|
8
|
+
margin-bottom: 1.5rem;
|
9
|
+
border: 1px solid $gray-l2;
|
10
|
+
padding: 1rem 1.5rem;
|
11
|
+
}
|
12
|
+
|
13
|
+
legend {
|
14
|
+
padding: 0 1rem;
|
15
|
+
font-size: $fs-small;
|
16
|
+
color: $gray;
|
17
|
+
text-transform: uppercase;
|
18
|
+
}
|
19
|
+
|
20
|
+
.field-wrap,
|
21
|
+
.field-group {
|
22
|
+
margin-bottom: 1rem;
|
23
|
+
}
|
24
|
+
|
25
|
+
.field-label {
|
26
|
+
display: inline-block;
|
27
|
+
margin-bottom: .2rem;
|
28
|
+
font-size: $fs-small;
|
29
|
+
font-weight: $fw-bold;
|
30
|
+
}
|
31
|
+
|
32
|
+
.field {
|
33
|
+
display: block;
|
34
|
+
margin-top: .2rem;
|
35
|
+
margin-bottom: .2rem;
|
36
|
+
|
37
|
+
&:focus, &:active {
|
38
|
+
border-color: $brand-primary-accent;
|
39
|
+
box-shadow: 0 0 5px rgba($brand-primary-accent,.8);
|
40
|
+
}
|
41
|
+
|
42
|
+
&.wide {
|
43
|
+
width: 90%;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
.field-text {
|
48
|
+
min-width: 25rem;
|
49
|
+
border: 1px solid $gray-l2;
|
50
|
+
border-radius: 2px;
|
51
|
+
padding: 6px 12px;
|
52
|
+
background-image: none;
|
53
|
+
background-color: $white-t;
|
54
|
+
box-shadow: inset 0 0 3px rgba(0,0,0,.2);
|
55
|
+
}
|
56
|
+
|
57
|
+
.tip,
|
58
|
+
.hint {
|
59
|
+
font-size: $fs-small;
|
60
|
+
color: $informational;
|
61
|
+
margin-bottom: 0;
|
62
|
+
|
63
|
+
&.error {
|
64
|
+
color: $error;
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
68
|
+
.field-textarea {
|
69
|
+
display: block;
|
70
|
+
min-width: 25rem;
|
71
|
+
}
|
72
|
+
|
73
|
+
.field-select {
|
74
|
+
display: block;
|
75
|
+
min-width: 25rem;
|
76
|
+
}
|
77
|
+
|
78
|
+
.field-upload {
|
79
|
+
border: none;
|
80
|
+
}
|
81
|
+
|
82
|
+
.group-inline {
|
83
|
+
margin-bottom: 1rem;
|
84
|
+
|
85
|
+
.field-wrap {
|
86
|
+
display: inline-block;
|
87
|
+
vertical-align: top;
|
88
|
+
margin-bottom: .2rem;
|
89
|
+
}
|
90
|
+
|
91
|
+
.field-select {
|
92
|
+
min-width: auto;
|
93
|
+
}
|
94
|
+
}
|
95
|
+
|
96
|
+
.fields-inline {
|
97
|
+
|
98
|
+
.field-label {
|
99
|
+
display: inline-block;
|
100
|
+
max-width: 30%;
|
101
|
+
}
|
102
|
+
|
103
|
+
.field {
|
104
|
+
display: inline-block;
|
105
|
+
max-width: 65%;
|
106
|
+
}
|
107
|
+
|
108
|
+
&.field-radio {
|
109
|
+
display: inline-block;
|
110
|
+
margin-right: 1.5rem;
|
111
|
+
}
|
112
|
+
}
|
113
|
+
|
114
|
+
.disabled {
|
115
|
+
color: $gray;
|
116
|
+
cursor: not-allowed;
|
117
|
+
}
|
118
|
+
|
119
|
+
// CASE: form/field error - error class should go on field-wrap
|
120
|
+
.error {
|
121
|
+
|
122
|
+
.field-label {
|
123
|
+
color: $error;
|
124
|
+
}
|
125
|
+
|
126
|
+
.field {
|
127
|
+
border-color: $error;
|
128
|
+
}
|
129
|
+
|
130
|
+
.tip,
|
131
|
+
.hint {
|
132
|
+
color: $error;
|
133
|
+
}
|
134
|
+
|
135
|
+
}
|
136
|
+
|
137
|
+
}
|
138
|
+
|
139
|
+
// simple input - button type form
|
140
|
+
.form-horizontal {
|
141
|
+
.form-input {
|
142
|
+
display: inline-block;
|
143
|
+
width: 80%;
|
144
|
+
}
|
145
|
+
|
146
|
+
.form-action {
|
147
|
+
display: inline-block;
|
148
|
+
width: 18%;
|
149
|
+
}
|
150
|
+
}
|
151
|
+
|
@@ -0,0 +1,92 @@
|
|
1
|
+
// header and navigation styles
|
2
|
+
|
3
|
+
#skip {
|
4
|
+
position: absolute;
|
5
|
+
overflow: hidden;
|
6
|
+
top: 0;
|
7
|
+
left: 0;
|
8
|
+
height: 0;
|
9
|
+
width: 0;
|
10
|
+
color: $gray-l2;
|
11
|
+
background-color: $black;
|
12
|
+
border-bottom: 2px solid $success;
|
13
|
+
|
14
|
+
&:focus {
|
15
|
+
position: relative;
|
16
|
+
display: block;
|
17
|
+
height: auto;
|
18
|
+
width: 100%;
|
19
|
+
padding: 5px 2%;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
.wrap-outer-header {
|
24
|
+
background-color: $black;
|
25
|
+
color: $white;
|
26
|
+
}
|
27
|
+
|
28
|
+
.wrap-header {
|
29
|
+
background: $black image-url("vi-shape7-tp.svg") no-repeat 0 65%;
|
30
|
+
|
31
|
+
.logo-mit-lib {
|
32
|
+
display: inline-block;
|
33
|
+
fill: $white;
|
34
|
+
color: $white;
|
35
|
+
|
36
|
+
img {
|
37
|
+
width: auto;
|
38
|
+
max-height: 44px;
|
39
|
+
max-width: 100%;
|
40
|
+
}
|
41
|
+
}
|
42
|
+
|
43
|
+
.link-logo-mit {
|
44
|
+
color: $white;
|
45
|
+
|
46
|
+
.logo-mit {
|
47
|
+
fill: $gray-l1;
|
48
|
+
|
49
|
+
.color {
|
50
|
+
fill: $white;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
56
|
+
// local header and nav
|
57
|
+
.wrap-outer-header-local {
|
58
|
+
border-bottom: 1px solid $gray-l2;
|
59
|
+
background-color: $white-t;
|
60
|
+
color: $gray-d1;
|
61
|
+
|
62
|
+
.wrap-header-local {
|
63
|
+
padding-top: 2rem;
|
64
|
+
}
|
65
|
+
|
66
|
+
a {
|
67
|
+
color: $gray-d1;
|
68
|
+
text-decoration: none;
|
69
|
+
}
|
70
|
+
|
71
|
+
.title-site {
|
72
|
+
@extend .hd-2;
|
73
|
+
margin-bottom: 0;
|
74
|
+
}
|
75
|
+
|
76
|
+
.action-auth {
|
77
|
+
@extend .button-primary;
|
78
|
+
}
|
79
|
+
}
|
80
|
+
|
81
|
+
|
82
|
+
// breadcrumb styles
|
83
|
+
.wrap-outer-breadcrumb {
|
84
|
+
background-color: $white;
|
85
|
+
color: $gray;
|
86
|
+
font-size: $fs-xsmall;
|
87
|
+
}
|
88
|
+
|
89
|
+
.wrap-breadcrumb {
|
90
|
+
padding-top: 7px;
|
91
|
+
padding-bottom: 5px;
|
92
|
+
}
|