评论管理页面适配移动端设备

master
iMaeGoo 4 years ago
parent 1d8603e1c0
commit dad5710435
  1. 17
      public/stylesheets/style.css
  2. 1
      views/comments.ejs
  3. 1
      views/error.ejs
  4. 1
      views/sign-up.ejs

@ -33,20 +33,20 @@ li {
display: flex; display: flex;
-ms-flex-direction: row; -ms-flex-direction: row;
flex-direction: row; flex-direction: row;
align-items: flex-start; align-items: center;
justify-content: space-between;
} }
.header .title { @media screen and (max-width:768px) {
flex: 90%; .comment-main {
} padding: 1rem;
}
.logout-wrapper {
} }
.comment-main{ .comment-main{
padding: 1rem 5rem; padding: 1rem 5rem;
} }
.vhead { .vhead {
padding-bottom: 0.5rem; padding-bottom: 0.5rem;
} }
@ -70,6 +70,7 @@ li {
.vcomment { .vcomment {
line-height: 1.8; line-height: 1.8;
word-wrap: break-word;
} }
.vcard { .vcard {
@ -103,7 +104,7 @@ li {
-ms-flex-direction: column; -ms-flex-direction: column;
flex-direction: column; flex-direction: column;
padding: 1rem 2rem; padding: 1rem 2rem;
width: 350px; width: 320px;
border: 1px solid #dae1e3; border: 1px solid #dae1e3;
background: #f8fbfd; background: #f8fbfd;
border-radius: 5px; border-radius: 5px;

@ -3,6 +3,7 @@
<head> <head>
<title><%= title %></title> <title><%= title %></title>
<link rel="stylesheet" href="/stylesheets/style.css"> <link rel="stylesheet" href="/stylesheets/style.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head> </head>
<body> <body>
<div class="comment-main"> <div class="comment-main">

@ -3,6 +3,7 @@
<head> <head>
<title>Error</title> <title>Error</title>
<link rel="stylesheet" href="/stylesheets/style.css"> <link rel="stylesheet" href="/stylesheets/style.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head> </head>
<body> <body>
<h1><%= message %></h1> <h1><%= message %></h1>

@ -3,6 +3,7 @@
<head> <head>
<title>LeanCloud评论管理</title> <title>LeanCloud评论管理</title>
<link rel="stylesheet" href="/stylesheets/style.css"> <link rel="stylesheet" href="/stylesheets/style.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head> </head>
<body> <body>

Loading…
Cancel
Save