mirror of
https://github.com/bitwarden/mobile
synced 2025-01-18 12:04:16 +01:00
build css from less
This commit is contained in:
parent
b837c600a8
commit
61c1c6ebf8
3
.gitignore
vendored
3
.gitignore
vendored
@ -197,4 +197,5 @@ FakesAssemblies/
|
|||||||
|
|
||||||
# Other
|
# Other
|
||||||
project.lock.json
|
project.lock.json
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
src/App/Css
|
@ -43,4 +43,8 @@
|
|||||||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
|
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
|
||||||
|
<Exec Command="npm run less" />
|
||||||
|
</Target>
|
||||||
</Project>
|
</Project>
|
3
src/App/Less/android.less
Normal file
3
src/App/Less/android.less
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
^Label, ^Entry, ^Editor {
|
||||||
|
font-size: 16;
|
||||||
|
}
|
3
src/App/Less/dark.less
Normal file
3
src/App/Less/dark.less
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
^contentpage {
|
||||||
|
background-color: gray;
|
||||||
|
}
|
3
src/App/Less/ios.less
Normal file
3
src/App/Less/ios.less
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
^Label, ^Entry, ^Editor {
|
||||||
|
font-size: 14;
|
||||||
|
}
|
14
src/App/Less/styles.less
Normal file
14
src/App/Less/styles.less
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
@import "variables.less";
|
||||||
|
|
||||||
|
^ContentPage {
|
||||||
|
background-color: @white;
|
||||||
|
}
|
||||||
|
|
||||||
|
StackLayout.list-cell {
|
||||||
|
padding: 10;
|
||||||
|
-xf-orientation: horizontal;
|
||||||
|
}
|
||||||
|
|
||||||
|
StackLayout.list-cell > FaLabel {
|
||||||
|
font-size: 22;
|
||||||
|
}
|
1
src/App/Less/variables.less
Normal file
1
src/App/Less/variables.less
Normal file
@ -0,0 +1 @@
|
|||||||
|
@white: #FFFFFF;
|
16
src/App/gulpfile.js
Normal file
16
src/App/gulpfile.js
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
const gulp = require('gulp');
|
||||||
|
const gulpLess = require('gulp-less');
|
||||||
|
const del = require('del');
|
||||||
|
|
||||||
|
function less() {
|
||||||
|
return gulp.src(['./Less/android.less', './Less/ios.less', './Less/dark.less', './Less/styles.less'])
|
||||||
|
.pipe(gulpLess())
|
||||||
|
.pipe(gulp.dest('./Css'));
|
||||||
|
}
|
||||||
|
|
||||||
|
function cleanCss() {
|
||||||
|
return del('./Css');
|
||||||
|
}
|
||||||
|
|
||||||
|
exports.cleanCss = cleanCss;
|
||||||
|
exports.less = gulp.series(cleanCss, less);
|
4331
src/App/package-lock.json
generated
Normal file
4331
src/App/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
12
src/App/package.json
Normal file
12
src/App/package.json
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"name": "bitwarden-mobile",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"scripts": {
|
||||||
|
"less": "gulp less"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"del": "4.1.0",
|
||||||
|
"gulp": "4.0.0",
|
||||||
|
"gulp-less": "4.0.1"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user