jekyll-theme-pirati 5.3.1 → 6.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +19 -0
  3. data/_includes/articles/horizontal-article.html +3 -3
  4. data/_includes/articles/vertical-article.html +2 -2
  5. data/_includes/candidate-badge.html +7 -5
  6. data/_includes/contacts/residence.html +1 -1
  7. data/_includes/footer.html +6 -6
  8. data/_includes/header.html +3 -3
  9. data/_includes/homepage/banner.html +3 -3
  10. data/_includes/js/main.html +3 -3
  11. data/_includes/menu.html +32 -34
  12. data/_includes/page-header.html +3 -1
  13. data/_includes/people/fullname.html +11 -0
  14. data/_includes/people/list-group.html +1 -1
  15. data/_includes/people/list-responsive.html +2 -2
  16. data/_includes/people/profile-badge.html +27 -34
  17. data/_includes/right-bar/bar_cal.html +2 -5
  18. data/_includes/right-bar/bar_fb.html +2 -5
  19. data/_includes/right-bar/bar_foto.html +1 -15
  20. data/_includes/right-bar/bar_garant.html +1 -4
  21. data/_includes/right-bar/bar_people.html +2 -5
  22. data/_includes/right-bar/bar_person_contact.html +3 -6
  23. data/_includes/right-bar/bar_program.html +1 -4
  24. data/_includes/right-bar/bar_textbox.html +0 -3
  25. data/_includes/right-bar/bar_tw.html +0 -3
  26. data/_includes/right-bar/bar_video.html +0 -3
  27. data/_layouts/communal-elections.html +9 -14
  28. data/_layouts/contacts.html +15 -10
  29. data/_layouts/members.html +2 -3
  30. data/_layouts/person.html +4 -3
  31. data/_layouts/post.html +2 -2
  32. data/_layouts/program-post.html +1 -1
  33. data/_sass/_base.scss +5 -0
  34. data/_sass/_fonts.scss +1 -1
  35. data/_sass/_settings.scss +147 -29
  36. data/_sass/components/Person.scss +6 -39
  37. data/_sass/components/academic-title.scss +7 -0
  38. data/_sass/components/article-listing.scss +26 -1
  39. data/_sass/components/blockquote.scss +54 -22
  40. data/_sass/components/contact-bar.scss +3 -3
  41. data/_sass/components/content-block.scss +13 -0
  42. data/_sass/components/corner-ribbon.scss +5 -4
  43. data/_sass/components/header-bar.scss +9 -5
  44. data/_sass/components/headline-media.scss +1 -0
  45. data/_sass/components/hp-banner.scss +11 -1
  46. data/_sass/components/icon.scss +8 -4
  47. data/_sass/components/intention-map.scss +18 -0
  48. data/_sass/components/member-list.scss +7 -0
  49. data/_sass/components/pagination.scss +5 -0
  50. data/_sass/components/profile-badge.scss +73 -0
  51. data/_sass/components/program.scss +74 -100
  52. data/_sass/components/simple-accordion.scss +2 -0
  53. data/_sass/components/tile.scss +2 -2
  54. data/_sass/components/top-bar.scss +51 -57
  55. data/_sass/components/top-sub-nav.scss +23 -17
  56. data/_sass/components/typography.scss +41 -20
  57. data/_sass/components/vertical-navigation.scss +3 -2
  58. data/_sass/components/widget-accordion.scss +26 -73
  59. data/_sass/objects/section.scss +19 -29
  60. data/_sass/pirati.scss +28 -22
  61. data/_sass/utilities/header-styles.scss +16 -0
  62. data/_sass/utilities/utilities.scss +11 -6
  63. data/assets/img/map-marker.svg +136 -0
  64. data/assets/js/{0.main.f7a234cedfef4096cecb.js → 0.main.44c1ac26aae564173c26.js} +0 -0
  65. data/assets/js/{0.main.f7a234cedfef4096cecb.js.map → 0.main.44c1ac26aae564173c26.js.map} +1 -1
  66. data/assets/js/main.44c1ac26aae564173c26.css +5 -0
  67. data/assets/js/main.44c1ac26aae564173c26.css.map +1 -0
  68. data/assets/js/main.44c1ac26aae564173c26.js +1 -0
  69. data/assets/js/main.44c1ac26aae564173c26.js.map +1 -0
  70. metadata +15 -10
  71. data/_includes/accordeon/accordeon-column.html +0 -8
  72. data/_sass/social-palette.scss +0 -9
  73. data/assets/js/main.f7a234cedfef4096cecb.css +0 -5
  74. data/assets/js/main.f7a234cedfef4096cecb.css.map +0 -1
  75. data/assets/js/main.f7a234cedfef4096cecb.js +0 -1
  76. data/assets/js/main.f7a234cedfef4096cecb.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  $program-item-ns: '';
2
2
 
3
- .#{$program-item-ns}c-program-key-point-list {
3
+ .c-program-key-point-list {
4
4
  dt:not(:first-of-type)::before {
5
5
  content: "\A";
6
6
  white-space: pre-wrap;
@@ -19,11 +19,11 @@ $program-item-ns: '';
19
19
  margin-top: 1.5rem;
20
20
  }
21
21
 
22
- .#{$program-item-ns}c-program-intro {
22
+ .c-program-intro {
23
23
  padding: 1.25rem;
24
24
  }
25
25
 
26
- .#{$program-item-ns}c-program-items {
26
+ .c-program-items {
27
27
  display: flex;
28
28
  flex-wrap: wrap;
29
29
  flex-direction: row;
@@ -33,18 +33,17 @@ $program-item-ns: '';
33
33
  }
34
34
  }
35
35
 
36
- .#{$program-item-ns}c-program-items__item {
36
+ .c-program-items__item {
37
37
  display: flex;
38
38
  max-width: 100%;
39
39
  }
40
40
 
41
- .#{$program-item-ns}c-program-items__item-wrap {
41
+ .c-program-items__item-wrap {
42
42
  display: flex;
43
43
  color: $white;
44
- border: 3px $primary-color solid;
45
44
  }
46
45
 
47
- .#{$program-item-ns}c-program-items__item-inner {
46
+ .c-program-items__item-inner {
48
47
  a:not(.button) {
49
48
  color: $black;
50
49
  // color: $white;
@@ -52,125 +51,100 @@ $program-item-ns: '';
52
51
  }
53
52
  }
54
53
 
55
- .#{$program-item-ns}c-program-items__item + .#{$program-item-ns}c-program-items__item {
54
+ .c-program-items__item + .c-program-items__item {
56
55
  margin-top: 1.5rem;
57
56
  }
58
57
 
59
- .#{$program-item-ns}c-program-candidates {
58
+ .c-program-candidates {
60
59
  display: flex;
61
60
  flex-direction: row;
62
61
  flex-wrap: wrap;
63
62
  }
64
63
 
65
- .#{$program-item-ns}c-program-candidates__others {
64
+ .c-program-candidate-badge {
65
+ display: flex; // keep the height uniform
66
66
  width: 100%;
67
- }
67
+ margin-bottom: 1.5rem;
68
68
 
69
- .#{$program-item-ns}c-program-candidates__row {
70
- display: flex;
71
- flex-direction: row;
72
- flex-wrap: wrap;
73
- margin-left: -0.75rem;
74
- margin-right: -0.75rem;
75
- margin-bottom: 1.5rem;
76
- }
77
-
78
- .#{$program-item-ns}c-program-candidate-badge {
79
- display: flex; // keep the height uniform
80
-
81
- .#{$program-item-ns}c-program-candidate-badge__body {
82
- width: 100%;
83
- display: flex;
84
- flex-direction: column;
85
- border: 3px $primary-color solid;
86
-
87
- .#{$program-item-ns}c-program-candidate-badge__description {
88
- padding: 1rem;
89
- }
90
-
91
- .#{$program-item-ns}c-program-candidate-badge__profession {
92
- display: block;
93
- margin-bottom: .25rem;
94
- font-weight: 600;
95
- }
96
-
97
- .#{$program-item-ns}c-program-candidate-badge__bio {
98
- margin-top: 1rem;
99
- margin-bottom: 0;
100
-
101
- @include breakpoint(medium down) {
102
- display: none;
103
- }
104
- }
105
- }
69
+ }
106
70
 
107
- .#{$program-item-ns}c-program-candidate-badge__avatar {
108
- position: relative;
109
- flex-shrink: 0;
110
- }
71
+ .c-program-candidate-badge__body {
72
+ width: 100%;
73
+ display: flex;
74
+ flex-direction: row;
75
+ background: $light-gray;
76
+ position: relative;
111
77
 
112
- .#{$program-item-ns}c-program-candidate-badge__rank {
113
- display: block;
114
- position: absolute;
115
- right: 10px;
116
- bottom: -20px;
117
- background-color: $black;
118
- border-radius: 50%;
119
- width: 40px;
120
- height: 40px;
121
- line-height: 34px;
122
- text-align: center;
123
- font-size: 1.15em;
124
- font-weight: bold;
125
- color: $white;
126
- border: 3px $white solid;
127
-
128
- span {
129
- // Compensate for the dot sign.
130
- padding-left: 3px;
131
- }
132
- }
133
78
  }
134
79
 
135
- @mixin candidate-landscape {
80
+ .c-program-candidate-badge__description {
81
+ padding: 1rem;
136
82
  width: 100%;
83
+ display: flex;
84
+ flex-direction: column;
85
+ }
137
86
 
138
- .#{$program-item-ns}c-program-candidate-badge__body {
139
- flex-direction: row;
140
- }
87
+ .c-program-candidate-badge__name {
88
+ margin-top: auto;
89
+ margin-bottom: 0;
90
+ padding-right: 30px; // space for the rank circle
141
91
 
142
- .#{$program-item-ns}c-program-candidate-badge__avatar {
143
- width: calc(33.3333% - 0.75rem);
144
- }
92
+ @include headerStyle('h6', super);
145
93
 
146
- .#{$program-item-ns}c-program-candidate-badge__rank {
147
- bottom: 10px;
148
- right: -20px;
149
- }
94
+ @include breakpoint(medium) {
95
+ padding-right: 45px; // space for the rank circle
150
96
 
151
- .#{$program-item-ns}c-program-candidate-badge__description {
152
- padding-left: 1.5rem;
153
- }
97
+ @include headerStyle('h5', super);
98
+ }
154
99
  }
155
100
 
156
- .#{$program-item-ns}c-program-candidates__row .#{$program-item-ns}c-program-candidate-badge {
157
- width: 33.3333333%;
158
- padding-left: 0.75rem;
159
- padding-right: 0.75rem;
101
+ .c-program-candidate-badge__profession {
102
+ display: block;
103
+ font-weight: 300;
104
+ }
160
105
 
161
- @include breakpoint(small down) {
162
- width: 100%;
163
- margin-bottom: 1.5rem;
106
+ .c-program-candidate-badge__bio {
107
+ margin-bottom: 0;
164
108
 
165
- // note: match leader layout
166
- @include candidate-landscape();
109
+ @include breakpoint(medium down) {
110
+ display: none;
167
111
  }
168
112
  }
169
113
 
170
- .#{$program-item-ns}c-program-candidate-badge.c-program-candidate-badge--leader {
171
- @include candidate-landscape();
114
+ .c-program-candidate-badge__avatar {
115
+ flex-shrink: 0;
116
+ max-width: calc(33.333% - 0.75rem);
117
+
118
+ @include breakpoint(medium) {
119
+ max-width: calc(225px - 0.75rem);
120
+ }
172
121
  }
173
122
 
174
- .#{$program-item-ns}c-program-candidate-badge.c-program-candidate-badge--leader + .#{$program-item-ns}c-program-candidates__others {
175
- margin-top: 1.5rem;
123
+ .c-program-candidate-badge__rank {
124
+ display: block;
125
+ position: absolute;
126
+ top: .5rem;
127
+ right: .5rem;
128
+ border-radius: 50%;
129
+ width: 30px;
130
+ height: 30px;
131
+ // Compensate for the font misalignment.
132
+ line-height: 31px;
133
+ text-align: center;
134
+ color: $black;
135
+ border: 2px $black solid;
136
+
137
+ @include headerStyle('h6', super);
138
+
139
+ @include breakpoint(medium) {
140
+ top: 1.5rem;
141
+ right: 1.5rem;
142
+ width: 45px;
143
+ height: 45px;
144
+ // Compensate for the font misalignment.
145
+ line-height: 45px;
146
+ border-width: 3px;
147
+
148
+ @include headerStyle('h5', super);
149
+ }
176
150
  }
@@ -49,6 +49,8 @@
49
49
 
50
50
  .c-simple-accordion__headline {
51
51
  margin: 0;
52
+
53
+ @include headerStyle('h2', alt);
52
54
  }
53
55
 
54
56
  .c-simple-accordion-content {
@@ -1,8 +1,8 @@
1
1
  .c-tile {
2
- border: 3px $primary-color solid;
2
+ // border: 3px $primary-color solid;
3
3
 
4
4
  &.c-tile--fill {
5
- background: $secondary-color;
5
+ background: $light-gray;
6
6
  }
7
7
 
8
8
  &.c-tile--inverted.c-tile--fill {
@@ -23,13 +23,14 @@
23
23
  .c-responsive-menu-toggle {
24
24
  display: inline-block;
25
25
  font-size: 1.15rem;
26
- border: 1px solid $medium-gray;
26
+ border: 1px solid $dark-gray;
27
27
  transition: border .2s;
28
28
  }
29
29
  .c-responsive-menu-toogle__button {
30
30
  display: flex;
31
31
  align-items: center;
32
32
  padding: 0.7rem 1.25rem;
33
+ color: $dark-gray;
33
34
  }
34
35
 
35
36
  .c-responsive-menu-toggle__caption {
@@ -48,16 +49,7 @@
48
49
  z-index: 10;
49
50
  background: $light-gray;
50
51
  border-bottom: 3px $primary-color solid;
51
-
52
- width: calc(100% + 2.5rem);
53
- margin-left: -1.25rem;
54
- margin-right: -1.25rem;
55
- }
56
-
57
- @include breakpoint(small down) {
58
- width: calc(100% + 1.25rem);
59
- margin-left: -0.625rem;
60
- margin-right: -0.625rem;
52
+ width: 100%;
61
53
  }
62
54
  }
63
55
 
@@ -79,58 +71,45 @@
79
71
  }
80
72
 
81
73
  .c-responsive-menu__item a {
74
+ @include headerStyle('h5', sub);
75
+
82
76
  display: block;
83
77
  position: relative;
84
- color: map-get($foundation-palette, dark);
85
- text-transform: uppercase;
86
- font-family: $header-font-family;
87
- font-size: 1.25rem;
88
- font-weight: 600;
89
- margin: 0.7rem 1.25rem;
78
+ color: $dark-gray;
79
+ margin: 0.7rem 1rem 0;
90
80
  padding: 4px .25em 0; // 4px to compensate for font
81
+ transition: all .1s ease-in-out;
82
+ text-transform: uppercase;
83
+ letter-spacing: .01em;
91
84
 
92
85
  @include breakpoint(medium down) {
93
86
  padding: 1rem 1.8rem;
87
+ color: $primary-color;
94
88
  }
95
89
  }
96
90
 
97
91
  // Highlight active item in the menu.
98
- .c-responsive-menu__item--active a,
99
- .c-responsive-menu__item a:hover, {
100
- color: $primary-color;
101
- }
102
-
103
92
  .c-responsive-menu__item a:hover,
104
93
  .c-responsive-menu__item--active a {
105
- background: $primary-color;
106
- color: $secondary-color;
107
- }
108
-
109
- // Display '/' divider between menu items on desktop view.
110
- .c-responsive-menu__item:not(.hide-for-medium):not(.hide-for-large) + .c-responsive-menu__item a {
111
94
  @include breakpoint(large) {
112
- &:before {
113
- content: '/';
114
- width: 12px;
115
- display: inline-block;
116
- position: absolute;
117
- top: -1px;
118
- left: -27px;
119
- font-size: 1.7rem;
120
- color: $medium-gray;
121
- border: 0px solid transparent;
122
- margin-top: 0;
123
- }
95
+ color: $secondary-color;
124
96
  }
125
97
  }
126
98
 
127
99
  .c-top-bar {
100
+ background: $ternary-color;
101
+ color: $secondary-color;
102
+ padding-bottom: .25rem;
128
103
  position: relative;
104
+ }
105
+
106
+ .c-top-bar__body {
129
107
  display: flex;
130
108
  align-items: center;
109
+ justify-content: space-between;
131
110
 
132
111
  @include breakpoint(medium down) {
133
- padding: 1.5rem 0;
112
+ padding: 0 0 .5rem;
134
113
  }
135
114
  }
136
115
 
@@ -146,10 +125,10 @@
146
125
  @include breakpoint(medium down) {
147
126
  width: 115px;
148
127
  }
128
+ }
149
129
 
150
- @include breakpoint(small down) {
151
- display: none;
152
- }
130
+ .c-top-bar__brand-image {
131
+ width: 100%;
153
132
  }
154
133
 
155
134
  // Responsive menu is second.
@@ -172,33 +151,48 @@
172
151
  margin-right: 1.5rem;
173
152
  }
174
153
 
175
- .c-search {
154
+ @include breakpoint(small down) {
155
+ display: none;
156
+ }
157
+
158
+ .c-top-bar__search-container {
159
+ border-color: $dark-gray;
160
+ border-width: 1px;
161
+
176
162
  @include breakpoint(large) {
177
163
  margin: 1rem 0;
178
164
  }
179
165
 
180
166
  // On large screen, search confirm is at the very right of the container.
181
167
  // @see: order: 3.
182
- .c-search__confirm {
168
+ .c-top-bar__search-confirm {
169
+ cursor: default;
170
+ color: $dark-gray;
171
+
183
172
  @include breakpoint(large) {
184
173
  padding-right: 0;
185
174
  }
186
175
  }
176
+
177
+ .c-top-bar__search-input {
178
+ background: $ternary-color;
179
+ appearance: textfield;
180
+ color: $white;
181
+
182
+ &::placeholder {
183
+ color: $dark-gray;
184
+ opacity: 1;
185
+ }
186
+
187
+ &:focus {
188
+ background: $ternary-color;
189
+ }
190
+ }
187
191
  }
188
192
  }
189
193
 
194
+
190
195
  .c-top-bar .c-responsive-menu-toggle {
191
196
  order: 4;
192
197
  }
193
198
 
194
- // Divides top bar from the rest of the page.
195
- .c-top-bar__divider {
196
- clear: both;
197
- display: block;
198
- height: 5px;
199
- margin-top: -3px;
200
- background: $primary-color;
201
- position: relative;
202
- z-index: 9;
203
- }
204
-
@@ -1,29 +1,29 @@
1
1
  $tsb-ns: '';
2
2
 
3
- nav.#{$tsb-ns}c-top-sub-nav {
4
- background: $light-gray;
5
- }
6
-
7
- .#{$tsb-ns}c-top-sub-nav .#{$tsb-ns}c-top-sub-nav-inner {
3
+ .c-top-sub-nav .c-top-sub-nav-inner {
8
4
  display: flex;
9
- padding-top: 2rem;
10
- padding-bottom: 2rem;
5
+ padding-top: 1rem;
6
+ padding-bottom: 1rem;
11
7
  overflow-y: hidden;
8
+ align-items: center;
12
9
 
13
10
  @include breakpoint(mobile down) {
14
11
  text-align: center;
15
12
  flex-direction: column;
16
13
  }
14
+
15
+ // This matches .o-section and .c-page-header padding which is stripped in this case.
16
+ @include breakpoint(medium) {
17
+ min-height: 4rem;
18
+ }
17
19
  }
18
20
 
19
- .#{$tsb-ns}c-top-sub-nav .#{$tsb-ns}c-top-sub-nav__heading {
20
- font-size: 1.5rem;
21
- font-weight: 500;
22
- font-family: $header-font-family;
21
+ .c-top-sub-nav .c-top-sub-nav__heading {
22
+
23
23
  margin: 0;
24
24
  }
25
25
 
26
- .#{$tsb-ns}c-top-sub-nav .#{$tsb-ns}c-top-sub-nav-divider {
26
+ .c-top-sub-nav .c-top-sub-nav-divider {
27
27
  margin: 0 2rem;
28
28
 
29
29
  &:before {
@@ -42,16 +42,22 @@ nav.#{$tsb-ns}c-top-sub-nav {
42
42
  }
43
43
  }
44
44
 
45
- .#{$tsb-ns}c-top-sub-nav-items {
45
+ .c-top-sub-nav .c-top-sub-nav__heading,
46
+ .c-top-sub-nav .c-top-sub-nav__item {
47
+ font-size: 1.15rem;
48
+ font-weight: map-get(map-get($text, weight), default);
49
+ font-family: $body-font-family;
50
+ }
51
+
52
+ .c-top-sub-nav-items {
46
53
  list-style-type: none;
47
54
  margin-left: 0;
48
55
  margin-bottom: 0;
49
56
  }
50
57
 
51
- .#{$tsb-ns}c-top-sub-nav__item {
58
+ .c-top-sub-nav__item {
52
59
  display: inline-block;
53
60
  margin-left: 0;
54
- font-size: 1.15rem;
55
61
 
56
62
  a {
57
63
  text-decoration: underline;
@@ -61,8 +67,8 @@ nav.#{$tsb-ns}c-top-sub-nav {
61
67
  display: block;
62
68
  }
63
69
  }
64
- .#{$tsb-ns}c-top-sub-nav__item +
65
- .#{$tsb-ns}c-top-sub-nav__item {
70
+ .c-top-sub-nav__item +
71
+ .c-top-sub-nav__item {
66
72
  margin-left: 2rem;
67
73
 
68
74
  @include breakpoint(medium down) {