remove css styling

This commit is contained in:
Kyle Spearrin 2019-04-26 22:42:05 -04:00
parent 9b2ce98b46
commit e9d54d9cf5
11 changed files with 0 additions and 4678 deletions

View file

@ -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

File diff suppressed because it is too large Load diff

View file

@ -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"
}
}

View file

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

View file

@ -29,7 +29,6 @@ namespace Bit.App
InitializeComponent();
SetCulture();
// ThemeManager.SetTheme("light");
ThemeManager.SetThemeStyle("light");
MainPage = new HomePage();
var mainPageTask = SetMainPageAsync();

View file

@ -1,3 +0,0 @@
__Label, __Entry, __Editor {
font-size: 16;
}

View file

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

View file

@ -1,3 +0,0 @@
__Label, __Entry, __Editor {
font-size: 14;
}

View file

@ -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;
}

View file

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

View file

@ -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