jekyll-theme-cs50 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/header.md +1 -0
  3. data/_layouts/page.html +51 -19
  4. data/_sass/jekyll-theme-cs50.scss +97 -60
  5. data/_sass/node_modules/bootstrap/LICENSE +22 -22
  6. data/_sass/node_modules/bootstrap/scss/_badge.scss +2 -1
  7. data/_sass/node_modules/bootstrap/scss/_buttons.scss +2 -5
  8. data/_sass/node_modules/bootstrap/scss/_card.scss +13 -34
  9. data/_sass/node_modules/bootstrap/scss/_carousel.scss +1 -2
  10. data/_sass/node_modules/bootstrap/scss/_close.scss +1 -4
  11. data/_sass/node_modules/bootstrap/scss/_code.scss +5 -5
  12. data/_sass/node_modules/bootstrap/scss/_custom-forms.scss +11 -11
  13. data/_sass/node_modules/bootstrap/scss/_dropdown.scss +20 -20
  14. data/_sass/node_modules/bootstrap/scss/_forms.scss +12 -16
  15. data/_sass/node_modules/bootstrap/scss/_functions.scss +3 -3
  16. data/_sass/node_modules/bootstrap/scss/_images.scss +1 -1
  17. data/_sass/node_modules/bootstrap/scss/_input-group.scss +3 -3
  18. data/_sass/node_modules/bootstrap/scss/_jumbotron.scss +1 -0
  19. data/_sass/node_modules/bootstrap/scss/_list-group.scss +33 -5
  20. data/_sass/node_modules/bootstrap/scss/_mixins.scss +6 -0
  21. data/_sass/node_modules/bootstrap/scss/_modal.scss +47 -4
  22. data/_sass/node_modules/bootstrap/scss/_navbar.scss +3 -8
  23. data/_sass/node_modules/bootstrap/scss/_pagination.scss +0 -5
  24. data/_sass/node_modules/bootstrap/scss/_popover.scss +46 -58
  25. data/_sass/node_modules/bootstrap/scss/_print.scss +1 -1
  26. data/_sass/node_modules/bootstrap/scss/_progress.scss +15 -6
  27. data/_sass/node_modules/bootstrap/scss/_reboot.scss +28 -7
  28. data/_sass/node_modules/bootstrap/scss/_spinners.scss +2 -0
  29. data/_sass/node_modules/bootstrap/scss/_tables.scss +3 -5
  30. data/_sass/node_modules/bootstrap/scss/_toasts.scss +3 -2
  31. data/_sass/node_modules/bootstrap/scss/_tooltip.scss +1 -1
  32. data/_sass/node_modules/bootstrap/scss/_transitions.scss +0 -2
  33. data/_sass/node_modules/bootstrap/scss/_type.scss +15 -15
  34. data/_sass/node_modules/bootstrap/scss/_utilities.scss +1 -0
  35. data/_sass/node_modules/bootstrap/scss/_variables.scss +129 -97
  36. data/_sass/node_modules/bootstrap/scss/bootstrap-grid.scss +3 -3
  37. data/_sass/node_modules/bootstrap/scss/bootstrap-reboot.scss +3 -3
  38. data/_sass/node_modules/bootstrap/scss/bootstrap.scss +3 -3
  39. data/_sass/node_modules/bootstrap/scss/mixins/_badge.scss +6 -0
  40. data/_sass/node_modules/bootstrap/scss/mixins/_border-radius.scss +29 -1
  41. data/_sass/node_modules/bootstrap/scss/mixins/_box-shadow.scss +16 -1
  42. data/_sass/node_modules/bootstrap/scss/mixins/_buttons.scss +3 -7
  43. data/_sass/node_modules/bootstrap/scss/mixins/_caret.scss +4 -4
  44. data/_sass/node_modules/bootstrap/scss/mixins/_deprecate.scss +10 -0
  45. data/_sass/node_modules/bootstrap/scss/mixins/_float.scss +3 -0
  46. data/_sass/node_modules/bootstrap/scss/mixins/_forms.scss +8 -14
  47. data/_sass/node_modules/bootstrap/scss/mixins/_image.scss +2 -2
  48. data/_sass/node_modules/bootstrap/scss/mixins/_pagination.scss +1 -1
  49. data/_sass/node_modules/bootstrap/scss/mixins/_reset-text.scss +1 -1
  50. data/_sass/node_modules/bootstrap/scss/mixins/_size.scss +1 -0
  51. data/_sass/node_modules/bootstrap/scss/mixins/_text-emphasis.scss +5 -3
  52. data/_sass/node_modules/bootstrap/scss/mixins/_text-hide.scss +1 -3
  53. data/_sass/node_modules/bootstrap/scss/mixins/_transition.scss +1 -1
  54. data/_sass/node_modules/bootstrap/scss/mixins/_visibility.scss +1 -0
  55. data/_sass/node_modules/bootstrap/scss/utilities/_borders.scss +13 -1
  56. data/_sass/node_modules/bootstrap/scss/utilities/_display.scss +6 -18
  57. data/_sass/node_modules/bootstrap/scss/utilities/_float.scss +5 -3
  58. data/_sass/node_modules/bootstrap/scss/utilities/_stretched-link.scss +19 -0
  59. data/_sass/node_modules/bootstrap/scss/utilities/_text.scss +6 -1
  60. data/_sass/node_modules/bootstrap/scss/utilities/_visibility.scss +4 -2
  61. data/_sass/node_modules/bootstrap/scss/vendor/_rfs.scss +204 -0
  62. data/_sass/package.json +2 -2
  63. metadata +21 -47
  64. data/_includes/aside.html +0 -24
  65. data/_includes/main.html +0 -5
@@ -4,7 +4,7 @@
4
4
  // Text
5
5
  //
6
6
 
7
- .text-monospace { font-family: $font-family-monospace; }
7
+ .text-monospace { font-family: $font-family-monospace !important; }
8
8
 
9
9
  // Alignment
10
10
 
@@ -62,6 +62,11 @@
62
62
 
63
63
  .text-decoration-none { text-decoration: none !important; }
64
64
 
65
+ .text-break {
66
+ word-break: break-word !important; // IE & < Edge 18
67
+ overflow-wrap: break-word !important;
68
+ }
69
+
65
70
  // Reset
66
71
 
67
72
  .text-reset { color: inherit !important; }
@@ -1,11 +1,13 @@
1
+ // stylelint-disable declaration-no-important
2
+
1
3
  //
2
4
  // Visibility utilities
3
5
  //
4
6
 
5
7
  .visible {
6
- @include invisible(visible);
8
+ visibility: visible !important;
7
9
  }
8
10
 
9
11
  .invisible {
10
- @include invisible(hidden);
12
+ visibility: hidden !important;
11
13
  }
@@ -0,0 +1,204 @@
1
+ // stylelint-disable property-blacklist, scss/dollar-variable-default
2
+
3
+ // SCSS RFS mixin
4
+ //
5
+ // Automated font-resizing
6
+ //
7
+ // See https://github.com/twbs/rfs
8
+
9
+ // Configuration
10
+
11
+ // Base font size
12
+ $rfs-base-font-size: 1.25rem !default;
13
+ $rfs-font-size-unit: rem !default;
14
+
15
+ // Breakpoint at where font-size starts decreasing if screen width is smaller
16
+ $rfs-breakpoint: 1200px !default;
17
+ $rfs-breakpoint-unit: px !default;
18
+
19
+ // Resize font-size based on screen height and width
20
+ $rfs-two-dimensional: false !default;
21
+
22
+ // Factor of decrease
23
+ $rfs-factor: 10 !default;
24
+
25
+ @if type-of($rfs-factor) != "number" or $rfs-factor <= 1 {
26
+ @error "`#{$rfs-factor}` is not a valid $rfs-factor, it must be greater than 1.";
27
+ }
28
+
29
+ // Generate enable or disable classes. Possibilities: false, "enable" or "disable"
30
+ $rfs-class: false !default;
31
+
32
+ // 1 rem = $rfs-rem-value px
33
+ $rfs-rem-value: 16 !default;
34
+
35
+ // Safari iframe resize bug: https://github.com/twbs/rfs/issues/14
36
+ $rfs-safari-iframe-resize-bug-fix: false !default;
37
+
38
+ // Disable RFS by setting $enable-responsive-font-sizes to false
39
+ $enable-responsive-font-sizes: true !default;
40
+
41
+ // Cache $rfs-base-font-size unit
42
+ $rfs-base-font-size-unit: unit($rfs-base-font-size);
43
+
44
+ // Remove px-unit from $rfs-base-font-size for calculations
45
+ @if $rfs-base-font-size-unit == "px" {
46
+ $rfs-base-font-size: $rfs-base-font-size / ($rfs-base-font-size * 0 + 1);
47
+ }
48
+ @else if $rfs-base-font-size-unit == "rem" {
49
+ $rfs-base-font-size: $rfs-base-font-size / ($rfs-base-font-size * 0 + 1 / $rfs-rem-value);
50
+ }
51
+
52
+ // Cache $rfs-breakpoint unit to prevent multiple calls
53
+ $rfs-breakpoint-unit-cache: unit($rfs-breakpoint);
54
+
55
+ // Remove unit from $rfs-breakpoint for calculations
56
+ @if $rfs-breakpoint-unit-cache == "px" {
57
+ $rfs-breakpoint: $rfs-breakpoint / ($rfs-breakpoint * 0 + 1);
58
+ }
59
+ @else if $rfs-breakpoint-unit-cache == "rem" or $rfs-breakpoint-unit-cache == "em" {
60
+ $rfs-breakpoint: $rfs-breakpoint / ($rfs-breakpoint * 0 + 1 / $rfs-rem-value);
61
+ }
62
+
63
+ // Responsive font-size mixin
64
+ @mixin rfs($fs, $important: false) {
65
+ // Cache $fs unit
66
+ $fs-unit: if(type-of($fs) == "number", unit($fs), false);
67
+
68
+ // Add !important suffix if needed
69
+ $rfs-suffix: if($important, " !important", "");
70
+
71
+ // If $fs isn't a number (like inherit) or $fs has a unit (not px or rem, like 1.5em) or $ is 0, just print the value
72
+ @if not $fs-unit or $fs-unit != "" and $fs-unit != "px" and $fs-unit != "rem" or $fs == 0 {
73
+ font-size: #{$fs}#{$rfs-suffix};
74
+ }
75
+ @else {
76
+ // Variables for storing static and fluid rescaling
77
+ $rfs-static: null;
78
+ $rfs-fluid: null;
79
+
80
+ // Remove px-unit from $fs for calculations
81
+ @if $fs-unit == "px" {
82
+ $fs: $fs / ($fs * 0 + 1);
83
+ }
84
+ @else if $fs-unit == "rem" {
85
+ $fs: $fs / ($fs * 0 + 1 / $rfs-rem-value);
86
+ }
87
+
88
+ // Set default font-size
89
+ @if $rfs-font-size-unit == rem {
90
+ $rfs-static: #{$fs / $rfs-rem-value}rem#{$rfs-suffix};
91
+ }
92
+ @else if $rfs-font-size-unit == px {
93
+ $rfs-static: #{$fs}px#{$rfs-suffix};
94
+ }
95
+ @else {
96
+ @error "`#{$rfs-font-size-unit}` is not a valid unit for $rfs-font-size-unit. Use `px` or `rem`.";
97
+ }
98
+
99
+ // Only add media query if font-size is bigger as the minimum font-size
100
+ // If $rfs-factor == 1, no rescaling will take place
101
+ @if $fs > $rfs-base-font-size and $enable-responsive-font-sizes {
102
+ $min-width: null;
103
+ $variable-unit: null;
104
+
105
+ // Calculate minimum font-size for given font-size
106
+ $fs-min: $rfs-base-font-size + ($fs - $rfs-base-font-size) / $rfs-factor;
107
+
108
+ // Calculate difference between given font-size and minimum font-size for given font-size
109
+ $fs-diff: $fs - $fs-min;
110
+
111
+ // Base font-size formatting
112
+ // No need to check if the unit is valid, because we did that before
113
+ $min-width: if($rfs-font-size-unit == rem, #{$fs-min / $rfs-rem-value}rem, #{$fs-min}px);
114
+
115
+ // If two-dimensional, use smallest of screen width and height
116
+ $variable-unit: if($rfs-two-dimensional, vmin, vw);
117
+
118
+ // Calculate the variable width between 0 and $rfs-breakpoint
119
+ $variable-width: #{$fs-diff * 100 / $rfs-breakpoint}#{$variable-unit};
120
+
121
+ // Set the calculated font-size.
122
+ $rfs-fluid: calc(#{$min-width} + #{$variable-width}) #{$rfs-suffix};
123
+ }
124
+
125
+ // Rendering
126
+ @if $rfs-fluid == null {
127
+ // Only render static font-size if no fluid font-size is available
128
+ font-size: $rfs-static;
129
+ }
130
+ @else {
131
+ $mq-value: null;
132
+
133
+ // RFS breakpoint formatting
134
+ @if $rfs-breakpoint-unit == em or $rfs-breakpoint-unit == rem {
135
+ $mq-value: #{$rfs-breakpoint / $rfs-rem-value}#{$rfs-breakpoint-unit};
136
+ }
137
+ @else if $rfs-breakpoint-unit == px {
138
+ $mq-value: #{$rfs-breakpoint}px;
139
+ }
140
+ @else {
141
+ @error "`#{$rfs-breakpoint-unit}` is not a valid unit for $rfs-breakpoint-unit. Use `px`, `em` or `rem`.";
142
+ }
143
+
144
+ @if $rfs-class == "disable" {
145
+ // Adding an extra class increases specificity,
146
+ // which prevents the media query to override the font size
147
+ &,
148
+ .disable-responsive-font-size &,
149
+ &.disable-responsive-font-size {
150
+ font-size: $rfs-static;
151
+ }
152
+ }
153
+ @else {
154
+ font-size: $rfs-static;
155
+ }
156
+
157
+ @if $rfs-two-dimensional {
158
+ @media (max-width: #{$mq-value}), (max-height: #{$mq-value}) {
159
+ @if $rfs-class == "enable" {
160
+ .enable-responsive-font-size &,
161
+ &.enable-responsive-font-size {
162
+ font-size: $rfs-fluid;
163
+ }
164
+ }
165
+ @else {
166
+ font-size: $rfs-fluid;
167
+ }
168
+
169
+ @if $rfs-safari-iframe-resize-bug-fix {
170
+ // stylelint-disable-next-line length-zero-no-unit
171
+ min-width: 0vw;
172
+ }
173
+ }
174
+ }
175
+ @else {
176
+ @media (max-width: #{$mq-value}) {
177
+ @if $rfs-class == "enable" {
178
+ .enable-responsive-font-size &,
179
+ &.enable-responsive-font-size {
180
+ font-size: $rfs-fluid;
181
+ }
182
+ }
183
+ @else {
184
+ font-size: $rfs-fluid;
185
+ }
186
+
187
+ @if $rfs-safari-iframe-resize-bug-fix {
188
+ // stylelint-disable-next-line length-zero-no-unit
189
+ min-width: 0vw;
190
+ }
191
+ }
192
+ }
193
+ }
194
+ }
195
+ }
196
+
197
+ // The font-size & responsive-font-size mixin uses RFS to rescale font sizes
198
+ @mixin font-size($fs, $important: false) {
199
+ @include rfs($fs, $important);
200
+ }
201
+
202
+ @mixin responsive-font-size($fs, $important: false) {
203
+ @include rfs($fs, $important);
204
+ }
data/_sass/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "dependencies": {
3
- "bootstrap": "^4.2.1",
4
- "primer-markdown": "^3.7.11"
3
+ "bootstrap": "^4.3.1",
4
+ "primer-markdown": "^4.0.0"
5
5
  },
6
6
  "description": "",
7
7
  "name": "",
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-cs50
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - CS50
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-24 00:00:00.000000000 Z
11
+ date: 2019-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -16,126 +16,98 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '3.7'
19
+ version: 3.8.6
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '3.7'
26
+ version: 3.8.6
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: jekyll-default-layout
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.1'
33
+ version: 0.1.4
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0.1'
40
+ version: 0.1.4
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: jekyll-optional-front-matter
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0.3'
47
+ version: 0.3.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0.3'
54
+ version: 0.3.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: jekyll-redirect-from
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0.14'
61
+ version: 0.15.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0.14'
68
+ version: 0.15.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: jekyll-relative-links
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0.5'
75
+ version: 0.6.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0.5'
82
+ version: 0.6.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: jekyll-titles-from-headings
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '0.5'
89
+ version: 0.5.1
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '0.5'
96
+ version: 0.5.1
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: jemoji
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '0.10'
103
+ version: 0.11.0
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '0.10'
111
- - !ruby/object:Gem::Dependency
112
- name: bundler
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - "~>"
116
- - !ruby/object:Gem::Version
117
- version: '1.16'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - "~>"
123
- - !ruby/object:Gem::Version
124
- version: '1.16'
125
- - !ruby/object:Gem::Dependency
126
- name: rake
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - "~>"
130
- - !ruby/object:Gem::Version
131
- version: '12.0'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - "~>"
137
- - !ruby/object:Gem::Version
138
- version: '12.0'
110
+ version: 0.11.0
139
111
  description:
140
112
  email:
141
113
  executables: []
@@ -143,10 +115,8 @@ extensions: []
143
115
  extra_rdoc_files: []
144
116
  files:
145
117
  - LICENSE.txt
146
- - _includes/aside.html
147
118
  - _includes/footer.md
148
119
  - _includes/header.md
149
- - _includes/main.html
150
120
  - _includes/nav.md
151
121
  - _layouts/page.html
152
122
  - _sass/jekyll-theme-cs50.scss
@@ -200,6 +170,7 @@ files:
200
170
  - _sass/node_modules/bootstrap/scss/mixins/_buttons.scss
201
171
  - _sass/node_modules/bootstrap/scss/mixins/_caret.scss
202
172
  - _sass/node_modules/bootstrap/scss/mixins/_clearfix.scss
173
+ - _sass/node_modules/bootstrap/scss/mixins/_deprecate.scss
203
174
  - _sass/node_modules/bootstrap/scss/mixins/_float.scss
204
175
  - _sass/node_modules/bootstrap/scss/mixins/_forms.scss
205
176
  - _sass/node_modules/bootstrap/scss/mixins/_gradients.scss
@@ -235,8 +206,10 @@ files:
235
206
  - _sass/node_modules/bootstrap/scss/utilities/_shadows.scss
236
207
  - _sass/node_modules/bootstrap/scss/utilities/_sizing.scss
237
208
  - _sass/node_modules/bootstrap/scss/utilities/_spacing.scss
209
+ - _sass/node_modules/bootstrap/scss/utilities/_stretched-link.scss
238
210
  - _sass/node_modules/bootstrap/scss/utilities/_text.scss
239
211
  - _sass/node_modules/bootstrap/scss/utilities/_visibility.scss
212
+ - _sass/node_modules/bootstrap/scss/vendor/_rfs.scss
240
213
  - _sass/node_modules/primer-markdown/build/build.scss
241
214
  - _sass/package.json
242
215
  - assets/css/style.scss
@@ -259,7 +232,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
259
232
  - !ruby/object:Gem::Version
260
233
  version: '0'
261
234
  requirements: []
262
- rubygems_version: 3.0.1
235
+ rubyforge_project:
236
+ rubygems_version: 2.7.7
263
237
  signing_key:
264
238
  specification_version: 4
265
239
  summary: This is CS50's theme for Jekyll.