Browse Source

修改样式

Caner 2 years ago
parent
commit
64391749db
4 changed files with 6 additions and 6 deletions
  1. 2 2
      main.js
  2. 1 1
      src/components/login.vue
  3. 1 1
      src/services/rem.ts
  4. 2 2
      src/views/index/index.vue

+ 2 - 2
main.js

@@ -38,8 +38,8 @@ const showLoading = () => {
 // 创建主程序 窗口
 const createWindow = () => {
   win = new BrowserWindow({
-    minWidth: 1000,
-    minHeight: 600,
+    minWidth: 1300,
+    minHeight: 760,
     webPreferences: {
       contextIsolation: false,
       nodeIntegration: true,

+ 1 - 1
src/components/login.vue

@@ -107,7 +107,7 @@ function login() {
           outline: none;
           width: 100%;
           font-size: 0.15rem;
-          color: #666666;
+          color: #333;
 
           &::placeholder {
             color: #9DA1A8;

+ 1 - 1
src/services/rem.ts

@@ -10,7 +10,7 @@
   const recalc = function () {
     // 1rem =100px
     const width = docEl.clientWidth
-    docEl.style.fontSize = `${100 * (width / 1000)}px`
+    docEl.style.fontSize = `${100 * (width / 1300)}px`
     window.$width = width
   }
   recalc()

+ 2 - 2
src/views/index/index.vue

@@ -285,7 +285,7 @@ onUnmounted(() => {
 </template>
 <style scoped lang="less">
 video {
-  background: none;
+  background: black;
   object-fit: fill;
   font-size: 0;
 }
@@ -297,7 +297,7 @@ video {
   width: 100%;
   padding: 0.05rem 0;
   z-index: 1;
-  background: rgba(0, 0, 0, 0.25);
+  background: #666666;
   display: flex;
   align-items: center;
   justify-content: center;