Skip to content

Commit 5751bf7

Browse files
authored
Merge pull request #158 from gonX/refactor-scss
Refactor SCSS
2 parents 007590a + be008ef commit 5751bf7

12 files changed

Lines changed: 187 additions & 159 deletions

File tree

site/Gemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ group :jekyll_plugins do
1717
gem 'jekyll-github-metadata', '~> 2.16'
1818
end
1919

20+
gem 'json'
21+
gem "bootswatch", github: "thomaspark/bootswatch", branch: "v5"
22+
gem "bootstrap", "~> 5.3.2"
23+
2024
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
2125
# and associated library.
2226
platforms :mingw, :x64_mingw, :mswin, :jruby do

site/Gemfile.lock

Lines changed: 79 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,41 @@
1+
GIT
2+
remote: https://github.com/thomaspark/bootswatch.git
3+
revision: 0b64b984923ed0eb373aed9cf1bb8e697c30847a
4+
branch: v5
5+
specs:
6+
bootswatch (5.3.3)
7+
18
GEM
29
remote: https://rubygems.org/
310
specs:
411
addressable (2.8.6)
512
public_suffix (>= 2.0.2, < 6.0)
6-
base64 (0.2.0)
13+
autoprefixer-rails (10.4.16.0)
14+
execjs (~> 2)
15+
bootstrap (5.3.2)
16+
autoprefixer-rails (>= 9.1.0)
17+
popper_js (>= 2.11.8, < 3)
718
colorator (1.1.0)
8-
concurrent-ruby (1.2.2)
19+
concurrent-ruby (1.2.3)
920
em-websocket (0.5.3)
1021
eventmachine (>= 0.12.9)
1122
http_parser.rb (~> 0)
1223
eventmachine (1.2.7)
13-
faraday (2.8.1)
14-
base64
15-
faraday-net_http (>= 2.0, < 3.1)
16-
ruby2_keywords (>= 0.0.4)
17-
faraday-net_http (3.0.2)
24+
execjs (2.9.1)
25+
faraday (2.9.0)
26+
faraday-net_http (>= 2.0, < 3.2)
27+
faraday-net_http (3.1.0)
28+
net-http
1829
ffi (1.16.3)
1930
forwardable-extended (2.6.0)
20-
google-protobuf (3.25.1-x86_64-linux)
31+
google-protobuf (3.25.3)
32+
google-protobuf (3.25.3-aarch64-linux)
33+
google-protobuf (3.25.3-arm64-darwin)
34+
google-protobuf (3.25.3-x86-linux)
35+
google-protobuf (3.25.3-x86_64-darwin)
36+
google-protobuf (3.25.3-x86_64-linux)
2137
http_parser.rb (0.8.0)
22-
i18n (1.14.1)
38+
i18n (1.14.4)
2339
concurrent-ruby (~> 1.0)
2440
jekyll (4.3.3)
2541
addressable (~> 2.4)
@@ -44,49 +60,97 @@ GEM
4460
sass-embedded (~> 1.54)
4561
jekyll-watch (2.2.1)
4662
listen (~> 3.0)
63+
json (2.7.1)
4764
kramdown (2.4.0)
4865
rexml
4966
kramdown-parser-gfm (1.1.0)
5067
kramdown (~> 2.0)
5168
liquid (4.0.4)
52-
listen (3.8.0)
69+
listen (3.9.0)
5370
rb-fsevent (~> 0.10, >= 0.10.3)
5471
rb-inotify (~> 0.9, >= 0.9.10)
5572
mercenary (0.4.0)
73+
net-http (0.4.1)
74+
uri
5675
octokit (6.1.1)
5776
faraday (>= 1, < 3)
5877
sawyer (~> 0.9)
5978
pathutil (0.16.2)
6079
forwardable-extended (~> 2.6)
80+
popper_js (2.11.8)
6181
public_suffix (5.0.4)
6282
rb-fsevent (0.11.2)
6383
rb-inotify (0.10.1)
6484
ffi (~> 1.0)
6585
rexml (3.2.6)
6686
rouge (4.2.0)
67-
ruby2_keywords (0.0.5)
6887
safe_yaml (1.0.5)
69-
sass-embedded (1.69.6-x86_64-linux-gnu)
70-
google-protobuf (~> 3.25)
88+
sass-embedded (1.69.5-aarch64-linux-android)
89+
google-protobuf (~> 3.23)
90+
sass-embedded (1.69.5-aarch64-linux-gnu)
91+
google-protobuf (~> 3.23)
92+
sass-embedded (1.69.5-aarch64-linux-musl)
93+
google-protobuf (~> 3.23)
94+
sass-embedded (1.69.5-arm-linux-androideabi)
95+
google-protobuf (~> 3.23)
96+
sass-embedded (1.69.5-arm-linux-gnueabihf)
97+
google-protobuf (~> 3.23)
98+
sass-embedded (1.69.5-arm-linux-musleabihf)
99+
google-protobuf (~> 3.23)
100+
sass-embedded (1.69.5-arm64-darwin)
101+
google-protobuf (~> 3.23)
102+
sass-embedded (1.69.5-x86-linux-android)
103+
google-protobuf (~> 3.23)
104+
sass-embedded (1.69.5-x86-linux-gnu)
105+
google-protobuf (~> 3.23)
106+
sass-embedded (1.69.5-x86-linux-musl)
107+
google-protobuf (~> 3.23)
108+
sass-embedded (1.69.5-x86_64-darwin)
109+
google-protobuf (~> 3.23)
110+
sass-embedded (1.69.5-x86_64-linux-android)
111+
google-protobuf (~> 3.23)
112+
sass-embedded (1.69.5-x86_64-linux-gnu)
113+
google-protobuf (~> 3.23)
114+
sass-embedded (1.69.5-x86_64-linux-musl)
115+
google-protobuf (~> 3.23)
71116
sawyer (0.9.2)
72117
addressable (>= 2.3.5)
73118
faraday (>= 0.17.3, < 3)
74119
terminal-table (3.0.2)
75120
unicode-display_width (>= 1.1.1, < 3)
76121
unicode-display_width (2.5.0)
122+
uri (0.13.0)
77123
webrick (1.8.1)
78124

79125
PLATFORMS
80-
x86_64-linux
126+
aarch64-linux
127+
aarch64-linux-android
128+
aarch64-linux-gnu
129+
aarch64-linux-musl
130+
arm-linux-androideabi
131+
arm-linux-gnueabihf
132+
arm-linux-musleabihf
133+
arm64-darwin
134+
x86-linux
135+
x86-linux-android
136+
x86-linux-gnu
137+
x86-linux-musl
138+
x86_64-darwin
139+
x86_64-linux-android
140+
x86_64-linux-gnu
141+
x86_64-linux-musl
81142

82143
DEPENDENCIES
144+
bootstrap (~> 5.3.2)
145+
bootswatch!
83146
http_parser.rb (~> 0.6.0)
84147
jekyll (~> 4.3)
85148
jekyll-github-metadata (~> 2.16)
149+
json
86150
tzinfo (>= 1, < 3)
87151
tzinfo-data
88152
wdm (~> 0.1.1)
89153
webrick (~> 1.8)
90154

91155
BUNDLED WITH
92-
2.4.21
156+
2.5.4

site/_includes/appdata-location.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
| Windows | `%localappdata%\OpenTabletDriver`
44
| Linux | `~/.config/OpenTabletDriver`
55
| macOS | `~/Library/Application Support/OpenTabletDriver`
6+
{: .table .table-dark }

site/_includes/styles.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<link href="https://cdn.jsdelivr.net/npm/bootswatch@5.3.2/dist/darkly/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous">
2-
<link rel="stylesheet" href="{% asset /css/rougehl.css %}">
31
<link rel="stylesheet" href="{% scssasset /css/site.scss %}">
2+
<link rel="stylesheet" href="{% asset /css/rougehl.css %}">
43
<link rel="stylesheet" href="{% asset /css/fix-fouc.css %}">

site/_layouts/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
{%- endif -%}
1111
{% include styles.html %}
1212
</head>
13-
<body data-bs-theme="dark">
13+
<body>
1414
<header class="mb-4">
1515
{% include header.html %}
1616
</header>

site/_layouts/tablets.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</div>
1212

1313
{% capture tablets %}
14-
{% include tablets.md %}{: #tablets .table .table-hover }
14+
{% include tablets.md %}{: #tablets .table .table-hover .table-dark }
1515
{% endcapture %}
1616
{{ tablets | markdownify }}
1717

site/_plugins/inject-scss-gems.rb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
require 'rubygems'
2+
require 'bootstrap'
3+
4+
Jekyll::Hooks.register :site, :after_init do |site|
5+
# Ensure 'load_paths' is initialized
6+
site.config["sass"]["load_paths"] = [] if site.config["sass"]["load_paths"].nil?
7+
8+
# Add Bootstrap stylesheets path
9+
site.config["sass"]["load_paths"] << Bootstrap.stylesheets_path
10+
11+
# Add Bootswatch stylesheets path
12+
Gem.loaded_specs["bootswatch"].load_paths.each do |path|
13+
site.config["sass"]["load_paths"] << path
14+
end
15+
end

site/_wiki/Development/Configurations.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ tablets.
1010
| Property Name | Value Type | Description |
1111
| :--------------: | :------------: | :---------- |
1212
| Name | `string` | The name of the device. This is always the device manufacturer's name followed by the device's model number or product name when not applicable.
13+
{: .table .table-dark }
1314

1415
## Specifications
1516

@@ -27,6 +28,7 @@ always required for the device to function.
2728
| Height | `double` | mm | The physical height of the digitizer in millimeters
2829
| Horizontal Resolution | `double` | Device Units | The horizontal resolution of the digitizer in device units
2930
| Vertical Resolution | `double` | Device Units | The vertical resolution of the digitizer in device units
31+
{: .table .table-dark }
3032

3133
### Pen
3234

@@ -37,6 +39,7 @@ data. This is almost always required.
3739
| :-------------: | :--------: | :---------- |
3840
| Max Pressure | `uint` | The maximum pressure reported by the pen in device pressure units. This is used to calculate a percentage of pressure. If there are more than pens supported by this tablet, the pen with the highest pressure value is used.
3941
| Button Count | `uint` | The amount of buttons on the pen. This does not include the eraser, if applicable. If there are more than one pens supported by this tablet, use the number of buttons on the pen with the most.
42+
{: .table .table-dark }
4043

4144
### Auxiliary Buttons
4245

@@ -46,6 +49,7 @@ buttons.
4649
| Property Name | Value Type | Description |
4750
| :-----------: | :---------: | :---------- |
4851
| Button Count | `uint` | The amount of buttons
52+
{: .table .table-dark }
4953

5054
### Touch
5155

@@ -77,6 +81,7 @@ pinpoint devices.
7781
| Output Initialization Report | `List<byte[]>` | A list of output reports to be sent to the device to perform the device's initialization sequence.
7882
| Device Strings | `Dictionary<byte, string>` | A list of regular expressions to be matched against specific indexes of strings contained within the device's firmware. They can be retrieved via the device string reader. This is optional, however it is commonly used to improve detection precision.
7983
| Initialization String Indexes | `byte[]` | A list of indexes to be retrieved from the device as part of the device's initialization sequence. This is optional, and very infrequently used.
84+
{: .table .table-dark }
8085

8186
> Byte arrays (`byte[]`) are serialized as Base64 in JSON.NET, the library that serializes and deserializes configurations.
8287
{:.alert-primary}
@@ -99,6 +104,7 @@ Some example attributes include:
99104
| `WinInterface` | [00..99] | *(Windows only)* Similar to `MacInterface`. String must have exactly two digits, (e.g. `"01"`)
100105
| `WinUsage` | [00..99] | *(Windows only)* Specifies the HID usage collection to use. String must have exactly two digits (e.g. `"01"`)
101106
| `FeatureInitDelayMs` | milliseconds | For tablets with multiple feature initialization reports (e.g. polling rate change), wait this many milliseconds between reports. This can help if later feature initialization reports are sometimes randomly not picked up by the tablet.
107+
{: .table .table-dark }
102108

103109
[libinput]: https://www.freedesktop.org/wiki/Software/libinput/ "freedesktop.org's site on libinput"
104110
[udev]: https://wiki.debian.org/udev

site/_wiki/Documentation/CommandLine.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ title: Command Line Arguments
77
| Argument | Description |
88
| :-------------------: | ----------- |
99
| `--minimized` or `-m` | Starts the application in a minimized state
10+
{: .table .table-dark }
1011

1112
## Daemon
1213

1314
| Argument | Description |
1415
| :-----------------: | ----------- |
1516
| `--appdata` or `-a` | Uses the specified directory for application data
1617
| `--config` or `-c` | Uses the specified directory for searching of tablet configuration overrides
18+
{: .table .table-dark }
1719

1820
## Console
1921

@@ -26,3 +28,4 @@ Use the `--help` argument to see the list of supported commands in your specific
2628
| :----------------------: | ----------- |
2729
| `--version` | Shows the compatible OpenTabletDriver daemon version
2830
| `--help` or `-h` or `-?` | Shows the available commands for use with the console application
31+
{: .table .table-dark }

site/_wiki/Documentation/RequiredPermissions.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ Then update the initramfs:
8787
| :-----------: | :------ |
8888
| Arch Linux | `sudo mkinitcpio -P`
8989
| Debian/Ubuntu | `sudo update-initramfs -u`
90+
{: .table .table-dark }
9091

9192
For other distros, refer to your distro's documentation on how to update the initramfs.
9293

@@ -135,6 +136,7 @@ Then update the initramfs:
135136
| :-----------: | :------ |
136137
| Arch Linux | `sudo mkinitcpio -P`
137138
| Debian/Ubuntu | `sudo update-initramfs -u`
139+
{: .table .table-dark }
138140

139141
For other distros, refer to your distro's documentation on how to update the initramfs.
140142

@@ -164,6 +166,7 @@ OpenTabletDriver requires the following permissions:
164166
| :--------------: | :----------------- |
165167
| Accessibility | To move the cursor
166168
| Input Monitoring | To read the current cursor position and properly send relative movements (relative mode)
169+
{: .table .table-dark }
167170

168171
To grant this, navigate to <kbd>Settings</kbd> ⇒ <kbd>System Preferences</kbd> ⇒ <kbd>Security and Privacy</kbd> ⇒ <kbd>Privacy</kbd>, then check the permissions required.
169172

0 commit comments

Comments
 (0)