Browse Source

build css from less

github-services/pull/515/head
Kyle Spearrin 7 years ago
parent
commit
61c1c6ebf8
  1. 1
      .gitignore
  2. 4
      src/App/App.csproj
  3. 3
      src/App/Less/android.less
  4. 3
      src/App/Less/dark.less
  5. 3
      src/App/Less/ios.less
  6. 14
      src/App/Less/styles.less
  7. 1
      src/App/Less/variables.less
  8. 16
      src/App/gulpfile.js
  9. 4331
      src/App/package-lock.json
  10. 12
      src/App/package.json

1
.gitignore vendored

@ -198,3 +198,4 @@ FakesAssemblies/ @@ -198,3 +198,4 @@ FakesAssemblies/
# Other
project.lock.json
.DS_Store
src/App/Css

4
src/App/App.csproj

@ -43,4 +43,8 @@ @@ -43,4 +43,8 @@
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
</EmbeddedResource>
</ItemGroup>
<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
<Exec Command="npm run less" />
</Target>
</Project>

3
src/App/Less/android.less

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
^Label, ^Entry, ^Editor {
font-size: 16;
}

3
src/App/Less/dark.less

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
^contentpage {
background-color: gray;
}

3
src/App/Less/ios.less

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
^Label, ^Entry, ^Editor {
font-size: 14;
}

14
src/App/Less/styles.less

@ -0,0 +1,14 @@ @@ -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

@ -0,0 +1 @@ @@ -0,0 +1 @@
@white: #FFFFFF;

16
src/App/gulpfile.js

@ -0,0 +1,16 @@ @@ -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

File diff suppressed because it is too large Load Diff

12
src/App/package.json

@ -0,0 +1,12 @@ @@ -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…
Cancel
Save