mirror of
https://github.com/bitwarden/mobile.git
synced 2024-11-23 11:45:38 +01:00
remove css styling
This commit is contained in:
parent
9b2ce98b46
commit
e9d54d9cf5
41
gulpfile.js
41
gulpfile.js
@ -1,41 +0,0 @@
|
||||
const gulp = require('gulp');
|
||||
const gulpSass = require('gulp-sass');
|
||||
const del = require('del');
|
||||
const fs = require('fs');
|
||||
|
||||
gulpSass.compiler = require('node-sass');
|
||||
|
||||
const paths = {
|
||||
css: './src/App/Css',
|
||||
};
|
||||
|
||||
const sassFiles = [
|
||||
'./src/App/Sass/android.scss',
|
||||
'./src/App/Sass/ios.scss',
|
||||
'./src/App/Sass/dark.scss',
|
||||
'./src/App/Sass/styles.scss',
|
||||
];
|
||||
|
||||
function sass() {
|
||||
return gulp.src(sassFiles)
|
||||
.pipe(gulpSass().on('error', gulpSass.logError))
|
||||
.pipe(gulp.dest(paths.css));
|
||||
}
|
||||
|
||||
function fixSass(cb) {
|
||||
fs.readdir(paths.css, (err, cssFiles) => {
|
||||
cssFiles.forEach((cssFile) => {
|
||||
const file = paths.css + '/' + cssFile;
|
||||
let fileContents = fs.readFileSync(file, 'utf8');
|
||||
fileContents = fileContents.replace(/__/g, '^');
|
||||
fs.writeFileSync(file, fileContents, 'utf8');
|
||||
});
|
||||
cb();
|
||||
});
|
||||
}
|
||||
|
||||
function cleanCss() {
|
||||
return del(paths.css);
|
||||
}
|
||||
|
||||
exports.sass = gulp.series(cleanCss, sass, fixSass);
|
4579
package-lock.json
generated
4579
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
13
package.json
13
package.json
@ -1,13 +0,0 @@
|
||||
{
|
||||
"name": "bitwarden-mobile",
|
||||
"version": "1.0.0",
|
||||
"scripts": {
|
||||
"sass": "gulp sass"
|
||||
},
|
||||
"devDependencies": {
|
||||
"del": "4.1.0",
|
||||
"gulp": "4.0.0",
|
||||
"gulp-sass": "4.0.2",
|
||||
"node-sass": "4.11.0"
|
||||
}
|
||||
}
|
@ -84,8 +84,4 @@
|
||||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
|
||||
<Exec Command="npm run sass" />
|
||||
</Target>
|
||||
</Project>
|
@ -29,7 +29,6 @@ namespace Bit.App
|
||||
|
||||
InitializeComponent();
|
||||
SetCulture();
|
||||
// ThemeManager.SetTheme("light");
|
||||
ThemeManager.SetThemeStyle("light");
|
||||
MainPage = new HomePage();
|
||||
var mainPageTask = SetMainPageAsync();
|
||||
|
@ -1,3 +0,0 @@
|
||||
__Label, __Entry, __Editor {
|
||||
font-size: 16;
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
__contentpage {
|
||||
background-color: gray;
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
__Label, __Entry, __Editor {
|
||||
font-size: 14;
|
||||
}
|
@ -1,14 +0,0 @@
|
||||
@import "variables.scss";
|
||||
|
||||
__ContentPage {
|
||||
// background-color: $white;
|
||||
}
|
||||
|
||||
StackLayout.list-cell {
|
||||
padding: 10;
|
||||
-xf-orientation: horizontal;
|
||||
}
|
||||
|
||||
StackLayout.list-cell > FaLabel {
|
||||
font-size: 22;
|
||||
}
|
@ -1 +0,0 @@
|
||||
$white: #FFFFFF;
|
@ -8,22 +8,6 @@ namespace Bit.App.Utilities
|
||||
{
|
||||
public static class ThemeManager
|
||||
{
|
||||
public static void SetTheme(string name)
|
||||
{
|
||||
var themeFormat = "Bit.App.Css.{0}.css";
|
||||
var assembly = IntrospectionExtensions.GetTypeInfo(typeof(App)).Assembly;
|
||||
// Other supported theme names can be added here.
|
||||
if(name == "dark")
|
||||
{
|
||||
Application.Current.Resources.Add(StyleSheet.FromAssemblyResource(assembly,
|
||||
string.Format(themeFormat, name)));
|
||||
}
|
||||
Application.Current.Resources.Add(StyleSheet.FromAssemblyResource(assembly,
|
||||
string.Format(themeFormat, Device.RuntimePlatform.ToLowerInvariant())));
|
||||
Application.Current.Resources.Add(StyleSheet.FromAssemblyResource(assembly,
|
||||
string.Format(themeFormat, "styles")));
|
||||
}
|
||||
|
||||
public static void SetThemeStyle(string name)
|
||||
{
|
||||
// Reset styles
|
||||
|
Loading…
Reference in New Issue
Block a user