mirror of
https://github.com/bitwarden/browser
synced 2026-01-19 08:53:28 +00:00
handle default sizing using preprocesses css
This commit is contained in:
@@ -8,7 +8,6 @@ angular
|
||||
self.animation = '';
|
||||
self.xsBody = $window.screen.availHeight < 600;
|
||||
self.smBody = !self.xsBody && $window.screen.availHeight <= 800;
|
||||
self.lgBody = !self.xsBody && !self.smBody && utilsService && !utilsService.isFirefox() && !utilsService.isEdge();
|
||||
self.disableSearch = utilsService && utilsService.isEdge();
|
||||
self.inSidebar = utilsService && utilsService.inSidebar($window);
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
<!-- @endexclude -->
|
||||
</head>
|
||||
<body ng-controller="mainController as main" class="{{main.animation}}"
|
||||
ng-class="{lg: main.lgBody, sm: main.smBody, xs: main.xsBody }">
|
||||
ng-class="{sm: main.smBody, xs: main.xsBody }">
|
||||
<div ui-view class="main-view"></div>
|
||||
|
||||
<!-- @if true !>
|
||||
|
||||
@@ -18,10 +18,14 @@ body {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
body.lg {
|
||||
/* @ifndef firefox */
|
||||
/* @ifndef edge */
|
||||
body {
|
||||
width: 375px !important;
|
||||
height: 667px !important;
|
||||
}
|
||||
/* @endif */
|
||||
/* @endif */
|
||||
|
||||
body.sm {
|
||||
width: 375px !important;
|
||||
|
||||
Reference in New Issue
Block a user