Skip to content

Commit df0e26b

Browse files
committed
Add support for LTR / RTL css styling
1 parent ae1e29e commit df0e26b

File tree

4 files changed

+5
-64
lines changed

4 files changed

+5
-64
lines changed

Diff for: README.md

+2-63
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,2 @@
1-
# OneNotePicker-JS
2-
A JavaScript UI component that allows a user to choose one of their Notebook Sections
3-
For example, this is consumed in https://github.com/OneNoteDev/WebClipper
4-
5-
## Setup
6-
### 1. Install npm -- https://nodejs.org/en/download/
7-
8-
### 2. Install gulp globally:
9-
```sh
10-
$ npm install --global gulp
11-
```
12-
(Note: on windows, you also need to add "%appdata%\npm" to your PATH)
13-
14-
### 3. Install the OneNotePicker packages
15-
From the root of this project, run:
16-
```sh
17-
$ npm install
18-
```
19-
20-
### 4. Setup the other dependencies
21-
From the root of this project, run:
22-
```sh
23-
$ gulp setup
24-
```
25-
26-
### 5. Build and Test
27-
Now just run:
28-
```sh
29-
$ gulp
30-
```
31-
32-
## Congratulations!
33-
At this point you should see the tests passing, and see the packaged code in the `target` folder
34-
35-
36-
### Other Gulp shortcuts
37-
#### Gulp clean
38-
```sh
39-
$ gulp clean
40-
```
41-
Removes all of the generated files from `build`, and uninstalls anything done in `setup`
42-
43-
#### Gulp setup
44-
```sh
45-
$ gulp setup
46-
```
47-
Installs the d.ts files and links the non-published npm packages
48-
49-
#### Gulp build
50-
```sh
51-
$ gulp build
52-
```
53-
(Note: this is currently the default command when you run `gulp`)
54-
The command you will use the most often when making code changes:
55-
- Compiles LESS and TypeScript into /build
56-
- Bundles the JavaScript modules together into /bundle
57-
- Exports all the needed files to /target
58-
59-
#### Gulp runTests
60-
```sh
61-
$ gulp runTests
62-
```
63-
Run all of the unit tests on the command line
1+
# Notes
2+
* `dir` tag must be specified on body for this library to work

Diff for: package.json

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"postcss-import": "^10.0.0",
4444
"postcss-loader": "^2.0.5",
4545
"postcss-reporter": "^3.0.0",
46+
"postcss-rtl": "^0.5.9",
4647
"postcss-url": "^6.1.0",
4748
"react-addons-test-utils": "^15.5.1",
4849
"react-dev-utils": "^0.5.2",

Diff for: postcss.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ module.exports = {
44
'postcss-cssnext': {
55
browsers: ['last 2 versions', '> 5%'],
66
},
7+
'postcss-rtl': {}
78
},
89
};

Diff for: sampleapp/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<link rel="stylesheet" href="https://static2.sharepointonline.com/files/fabric/office-ui-fabric-core/4.1.0/css/fabric.min.css">
77
<link rel="stylesheet" href="dist/onenotepicker.css">
88
</head>
9-
<body style="min-height:100%">
9+
<body style="min-height:100%" dir="ltr">
1010
<div id="oneNotePicker" style="width:350px;height:350px;margin:50px;overflow-y:scroll"></div>
1111
<script src="dist/sample.js"></script>
1212
</body>

0 commit comments

Comments
 (0)