Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0aa6fea

Browse files
committed
First commit of new website (in progress!)
1 parent75dbbf0 commit0aa6fea

File tree

64 files changed

+9021
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+9021
-1
lines changed

‎docs/.gitignore‎

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Bridgetown
2+
output
3+
.bridgetown-cache
4+
.bridgetown-metadata
5+
.bridgetown-webpack
6+
7+
# Dependency folders
8+
node_modules
9+
bower_components
10+
vendor
11+
12+
# Caches
13+
.sass-cache
14+
.npm
15+
.node_repl_history
16+
17+
# Ignore bundler config.
18+
/.bundle
19+
20+
# Ignore Byebug command history file.
21+
.byebug_history
22+
23+
# dotenv environment variables file
24+
.env
25+
26+
# Mac files
27+
.DS_Store
28+
29+
# Yarn
30+
yarn-error.log
31+
yarn-debug.log*
32+
.pnp/
33+
.pnp.js
34+
# Yarn Integrity file
35+
.yarn-integrity

‎docs/Gemfile‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
source"https://rubygems.org"
2+
git_source(:github){ |repo|"https://github.com/#{repo}.git"}
3+
4+
gem"bridgetown","~> 0.19.1"
5+
6+
group:bridgetown_pluginsdo
7+
gem"bridgetown-seo-tag","3.0.5"
8+
gem"bridgetown-feed","~> 1.0"
9+
gem"bridgetown-quick-search","~> 1.0.3"
10+
gem"bridgetown-inline-svg","~> 1.1"
11+
end

‎docs/bridgetown.config.yml‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
url:"https://www.ruby2js.com"
2+
permalink:simple
3+
4+
timezone:America/New_York
5+
6+
collections:
7+
docs:
8+
output:true
9+
permalink:/:collection/:path
10+
sort_by:order
11+
name:Documentation
12+
13+
pagination:
14+
enabled:true

‎docs/frontend/javascript/index.js‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import"@shoelace-style/shoelace/dist/shoelace/shoelace.css"
2+
import{
3+
setAssetPath,
4+
SlIcon,
5+
}from"@shoelace-style/shoelace"
6+
7+
setAssetPath(`${location.origin}/_bridgetown/static/icons`)
8+
/* Define icons first: */
9+
customElements.define("sl-icon",SlIcon)
10+
11+
console.info("imported!",SlIcon)
12+
13+
import"index.scss"
14+
15+
// Import all javascript files from src/_components
16+
constcomponentsContext=require.context("bridgetownComponents",true,/.js$/)
17+
componentsContext.keys().forEach(componentsContext)
18+
19+
importanimateScrollTofrom"animated-scroll-to"
20+
import"bridgetown-quick-search"

‎docs/frontend/styles/content.scss‎

Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
.content {
2+
body.post&h3 {
3+
text-align:center;
4+
&:not(:first-child) {
5+
margin-top:3.5rem;
6+
}
7+
margin-bottom:2.5rem;
8+
color:$red;
9+
}
10+
11+
.highlight {
12+
margin-top:1em;
13+
margin-bottom:1em;
14+
}
15+
16+
h2:not(:first-child) {
17+
margin-top:1.4285em;
18+
}
19+
}
20+
21+
body.docs.content {
22+
.heading-anchor {
23+
color:$info;
24+
font-size:0.9em;
25+
margin-left:0.5em;
26+
opacity:0;
27+
transition:opacity0.3s;
28+
}
29+
h2:hover.heading-anchor,
30+
h3:hover.heading-anchor {
31+
opacity:1;
32+
}
33+
}
34+
35+
.box.px-8 {
36+
@includemobile {
37+
padding-left:1rem!important;
38+
padding-right:1rem!important;
39+
}
40+
}
41+
42+
.boxul,
43+
.boxol {
44+
margin-top:2rem!important;
45+
margin-bottom:2rem!important;
46+
width:85%;
47+
48+
li +li {
49+
margin-top:2rem;
50+
}
51+
}
52+
53+
.contenta:not(.button),
54+
a.wavy-underline {
55+
text-decoration:underline;
56+
57+
-webkit-text-decoration-color:$red;
58+
text-decoration-color:$red;
59+
-webkit-text-decoration-thickness:1px;
60+
text-decoration-thickness:1px;
61+
62+
-webkit-text-underline-offset:3px;
63+
text-underline-offset:3px;
64+
}
65+
66+
.box.author {
67+
color:$primary;
68+
69+
.avatar {
70+
height:48px;
71+
width:48px;
72+
object-fit:cover;
73+
border-radius:50%;
74+
vertical-align:middle;
75+
margin-right:0.5rem;
76+
}
77+
}
78+
79+
table.settings {
80+
tr >td:first-child {
81+
width:65%;
82+
}
83+
&.bigger-output {
84+
tr >td:first-child {
85+
width:40%;
86+
}
87+
}
88+
&.biggest-output {
89+
tr >td:first-child {
90+
width:25%;
91+
}
92+
}
93+
.option,
94+
.filter {
95+
color:darken($blue,10%);
96+
}
97+
.flag,
98+
.output {
99+
color:darken($orange,20%);
100+
}
101+
p.default {
102+
margin-top:-0.5em;
103+
font-weight:bold;
104+
code {
105+
font-size:1em;
106+
color:darken($green,40%);
107+
}
108+
}
109+
110+
th,
111+
td {
112+
&:first-child {
113+
background:lighten($white-ter,2.5%);
114+
}
115+
}
116+
117+
th {
118+
text-transform:uppercase;
119+
}
120+
121+
@mediascreenand (max-width:600px) {
122+
th {
123+
&:first-child:before {
124+
content:"👇";
125+
}
126+
&:last-child:after {
127+
content:" 👇";
128+
}
129+
}
130+
th,
131+
td {
132+
display:block;
133+
width:100%!important;
134+
&:last-child {
135+
text-align:right!important;
136+
}
137+
}
138+
}
139+
}
140+
141+
h2.no_toc {
142+
color:$orange;
143+
}
144+
ul#markdown-toc {
145+
border-left:solid5px$orange;
146+
margin-left:-2rem;
147+
margin-bottom:4.25rem!important;
148+
149+
list-style-type:none;
150+
padding-left:calc(2rem-5px);
151+
152+
ul {
153+
margin-top:0.5em!important;
154+
margin-bottom:1em!important;
155+
}
156+
li +li {
157+
margin-top:0.2em;
158+
}
159+
a {
160+
text-decoration:none;
161+
font-weight:500;
162+
}
163+
}

‎docs/frontend/styles/controls.scss‎

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
.button,
2+
.control.has-icons-left.icon,
3+
.control.has-icons-right.icon,
4+
.input,
5+
.pagination-ellipsis,
6+
.pagination-link,
7+
.pagination-next,
8+
.pagination-previous,
9+
.select:not(.is-multiple),
10+
.select:not(.is-multiple)select,
11+
.textarea {
12+
height:2.572em;
13+
}
14+
15+
.button:not(.has-mixed-case) {
16+
text-transform:uppercase;
17+
}
18+
19+
.notification {
20+
@each$name,$pairin$colors {
21+
$color:nth($pair,1);
22+
$color-invert:nth($pair,2);
23+
24+
&.is-#{$name} {
25+
a:not(.button) {
26+
color:$color-invert;
27+
text-decoration:underline;
28+
}
29+
}
30+
}
31+
}
32+
33+
.navbar.ruby2js-logo {
34+
transition:opacity0.2sease-in-out;
35+
}
36+
37+
a,
38+
.button {
39+
transition:0.2sease-in-out;
40+
transition-property:background,background-color,color;
41+
}
42+
43+
.button.is-large {
44+
font-weight:700;
45+
}
46+
47+
body.post.button.is-small {
48+
height:auto;
49+
white-space:normal;
50+
}
51+
52+
@keyframesfade-in-button {
53+
from {
54+
opacity:0;
55+
transform:translate3d(0,20px,0);
56+
}
57+
to {
58+
opacity:1;
59+
transform:translate3d(0,0,0);
60+
}
61+
}
62+
63+
#mobile-nav-activator {
64+
@includetablet {
65+
display:none;
66+
}
67+
height:auto;
68+
position:fixed;
69+
bottom:60px;
70+
right:12px;
71+
box-shadow:0px3px9pxrgba(0,0,0,0.3);
72+
animation-name: fade-in-button;
73+
animation-duration:0.75s;
74+
75+
.not-shown {
76+
display:none;
77+
}
78+
.shown {
79+
animation-name: fade-in-button;
80+
animation-duration:0.45s;
81+
}
82+
}
83+
84+
nav.search-iteminput {
85+
font-size:1em;
86+
height:1.85em;
87+
padding:0.2em0.6em;
88+
background:white;
89+
opacity:0.8;
90+
width:95%;
91+
max-width:400px;
92+
&::-webkit-search-decoration {
93+
-webkit-appearance:none;
94+
}
95+
&::placeholder {
96+
color:#888;
97+
opacity:1;
98+
}
99+
100+
border:none;
101+
&:focus {
102+
opacity:1;
103+
}
104+
105+
@includedesktop {
106+
width:calc(9vw*2);
107+
}
108+
}
109+
bridgetown-search-results {
110+
--link-color:#0f5348;
111+
--divider-color:#e6e1d7;
112+
--text-color:#3e3f3a;
113+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp