Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 3c58d47

Browse files
committed
feat(client): add left and right classes
1 parent 1f744a3 commit 3c58d47

File tree

4 files changed

+26
-14
lines changed

4 files changed

+26
-14
lines changed

packages/client/assets/style/customize.css

+14-6
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22
display: flex;
33
}
44

5-
.katex-html {
6-
display: none;
5+
.left {
6+
text-align: left;
77
}
88

9-
.qr {
10-
width: var(--qr-code-image-size);
11-
height: var(--qr-code-image-size);
12-
margin: 0 auto;
9+
.right {
10+
text-align: right;
1311
}
1412

1513
.swiper-container {
@@ -57,3 +55,13 @@
5755
align-self: flex-start;
5856
}
5957
} */
58+
59+
.katex-html {
60+
display: none;
61+
}
62+
63+
.qr {
64+
width: var(--qr-code-image-size);
65+
height: var(--qr-code-image-size);
66+
margin: 0 auto;
67+
}

packages/client/src/components/Assistant.js

+8
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,14 @@ export const Assistant = () => (
107107
title: 'Slide Background',
108108
content: <code>{`.slide-background`}</code>,
109109
},
110+
{
111+
title: 'Align Left',
112+
content: <code>{`.left`}</code>,
113+
},
114+
{
115+
title: 'Align Right',
116+
content: <code>{`.right`}</code>,
117+
},
110118
]}
111119
/>
112120
</Item>

samples/themes/slides/slides.mdx

+4-4
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ slide:
3939
```
4040

4141
<!-- block-end -->
42-
<!-- block-start: column -->
42+
<!-- block-start: column, left -->
4343

4444
Fusuma is an open-source, created by [@hiroppy](https://twitter.com/about_hiroppy). Fusuma provides development, production, presentation mode, and so on. Users code only Markdown and styles if needed. The purpose is to focus on creating slides, so Fusuma supports optimization and improvement SEO. And also Fusuma has a presenter mode, and practice mode which users can record voice and actions. Have a fun time!
4545

@@ -84,7 +84,7 @@ module.exports = {
8484
```
8585

8686
<!-- block-end -->
87-
<!-- block-start: column -->
87+
<!-- block-start: column, left -->
8888

8989
webpack is an open-source JavaScript module bundler. It is made primarily for JavaScript, but it can transform front-end assets such as HTML, CSS, and images if the corresponding loaders are included. webpack takes modules with dependencies and generates static assets representing those modules. Webpack takes the dependencies and generates a dependency graph allowing web developers to use a modular approach for their web application development purposes. It can be used from the command line, or can be configured using a config file which is named webpack.config.js. This file is used to define rules, plugins, etc., for a project.
9090

@@ -120,7 +120,7 @@ module.exports = (api) => {
120120
```
121121

122122
<!-- block-end -->
123-
<!-- block-start: column -->
123+
<!-- block-start: column, left -->
124124

125125
Babel is a free and open-source JavaScript transcompiler that is mainly used to convert ECMAScript 2015+ (ES6+) code into a backwards compatible version of JavaScript that can be run by older JavaScript engines. Babel is a popular tool for using the newest features of the JavaScript programming language. Developers can use new JavaScript language features by using Babel to convert their source code into versions of JavaScript that evolving browsers are able to process. The core version of Babel was downloaded 5 million times a month as of 2016, increasing to 16 million times per week as of 2019.
126126

@@ -159,7 +159,7 @@ server.listen(port, hostname, () => {
159159
```
160160

161161
<!-- block-end -->
162-
<!-- block-start: column -->
162+
<!-- block-start: column, left -->
163163

164164
Node.js is an open-source, cross-platform, back-end JavaScript runtime environment that runs on the Chrome V8 engine and executes JavaScript code outside a web browser. Node.js lets developers use JavaScript to write command line tools and for server-side scripting—running scripts server-side to produce dynamic web page content before the page is sent to the user's web browser. Consequently, Node.js represents a "JavaScript everywhere" paradigm, unifying web-application development around a single programming language, rather than different languages for server-side and client-side scripts.
165165

samples/themes/style.css

-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
/* @import '../../packages/client/assets/style/themes/babel.css'; */
44
/* @import '../../packages/client/assets/style/themes/node.css'; */
55

6-
.column:last-child {
7-
text-align: left;
8-
}
9-
106
/* --------- */
117
.pop {
128
--color-title: #e53498;

0 commit comments

Comments
 (0)