oauth2 code授权方式登录css

This commit is contained in:
xiaoxiaoqiong 2022-07-05 15:01:12 +08:00
parent 1a2d01df17
commit f01da70e8a
1 changed files with 107 additions and 107 deletions

View File

@ -6,136 +6,136 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<%= javascript_include_tag :application, 'data-turbolinks-track': 'reload'%> <%= javascript_include_tag :application, 'data-turbolinks-track': 'reload' %>
<%= stylesheet_link_tag "doorkeeper/doorkeeper" %> <%= stylesheet_link_tag "doorkeeper/application" %>
<%= csrf_meta_tags %> <%= csrf_meta_tags %>
<%= yield(:css) if content_for?(:css) %> <%= yield(:css) if content_for?(:css) %>
<style> <style>
body { body {
margin: 0; margin: 0;
color: rgba(0, 0, 0, .65); color: rgba(0, 0, 0, .65);
font-size: 14px; font-size: 14px;
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Helvetica Neue, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol; font-family: -apple-system, BlinkMacSystemFont, Segoe UI, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Helvetica Neue, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
font-variant: tabular-nums; font-variant: tabular-nums;
line-height: 1.5; line-height: 1.5;
background-color: #fff; background-color: #fff;
-webkit-font-feature-settings: "tnum"; -webkit-font-feature-settings: "tnum";
font-feature-settings: "tnum"; font-feature-settings: "tnum";
background: url(https://ali-cdn.educoder.net/react/build/static/media/beijintulogontwo.41076faf.png) center center / 100% 100% no-repeat fixed; background: url(https://ali-cdn.educoder.net/react/build/static/media/beijintulogontwo.41076faf.png) center center / 100% 100% no-repeat fixed;
height: 100%; height: 100%;
width: 100%; width: 100%;
position: absolute; position: absolute;
top: 0px; top: 0px;
bottom: 0px; bottom: 0px;
min-height: 100%; min-height: 100%;
padding-top: 40px; padding-top: 40px;
} }
#container { #container {
max-width: 500px; max-width: 500px;
} }
.mt-20 { .mt-20 {
margin-top: 20px; margin-top: 20px;
} }
.login-form { .login-form {
margin-top: 10px; margin-top: 10px;
} }
.error { .error {
color: #ee4a1f; color: #ee4a1f;
text-align: left; text-align: left;
margin-bottom: 0px; margin-bottom: 0px;
min-height: 20px; min-height: 20px;
} }
.app-name { .app-name {
color: #459be6; color: #459be6;
} }
.logo-wraper { .logo-wraper {
text-align: center; text-align: center;
} }
.auth-desc { .auth-desc {
margin: 20px; margin: 20px;
font-size: 20px; font-size: 20px;
} }
.w { .w {
position: relative; position: relative;
width: 100%; width: 100%;
max-width: 350px; max-width: 350px;
margin: 0px auto; margin: 0px auto;
} }
.btn-login { .btn-login {
width: 100%; width: 100%;
text-align: center; text-align: center;
color: #fff !important; color: #fff !important;
display: block; display: block;
background: #459be6; background: #459be6;
border-radius: 4px; border-radius: 4px;
letter-spacing: 2px; letter-spacing: 2px;
cursor: pointer; cursor: pointer;
} }
input { input {
font-family: "Monospaced Number", "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif; font-family: "Monospaced Number", "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
-webkit-box-sizing: border-box; -webkit-box-sizing: border-box;
box-sizing: border-box; box-sizing: border-box;
margin: 0; margin: 0;
padding: 0; padding: 0;
list-style: none; list-style: none;
position: relative; position: relative;
display: inline-block; display: inline-block;
padding: 4px 11px; padding: 4px 11px;
width: 100%; width: 100%;
height: 38px; height: 38px;
font-size: 14px; font-size: 14px;
line-height: 1.5; line-height: 1.5;
color: rgba(0, 0, 0, 0.65); color: rgba(0, 0, 0, 0.65);
width: 100%; width: 100%;
background-color: #fff; background-color: #fff;
height: 45px; height: 45px;
padding: 5px; padding: 5px;
background-image: none; background-image: none;
border: 1px solid #d9d9d9; border: 1px solid #d9d9d9;
border-radius: 4px; border-radius: 4px;
-webkit-transition: all .3s; -webkit-transition: all .3s;
-o-transition: all .3s; -o-transition: all .3s;
transition: all .3s; transition: all .3s;
margin-top: 10px; margin-top: 10px;
} }
.reg { .reg {
text-align: center; text-align: center;
margin-top: 20px; margin-top: 20px;
} }
.reg-link { .reg-link {
font-size: 18px; font-size: 18px;
color: #999; color: #999;
} }
</style> </style>
</head> </head>
<body> <body>
<header class="page-header" role="banner"> <header class="page-header" role="banner">
<div class="logo-wraper"> <div class="logo-wraper">
<img src="https://www.gitlink.org.cn/images/avatars/LaboratorySetting/1nav?t=1638344455" style="cursor: pointer;width: 80px;"> <img src="https://ali-cdn.educoder.net/images/avatars/LaboratorySetting/1login" style="cursor: pointer;width: 80px;">
</div> </div>
</header> </header>
<div id="container"> <div id="container">
<%- if flash[:notice].present? %> <%- if flash[:notice].present? %>
<div class="alert alert-info"> <div class="alert alert-info">
<%= flash[:notice] %> <%= flash[:notice] %>
</div> </div>
<% end -%> <% end -%>
<%= yield %> <%= yield %>
</div> </div>
</body> </body>
</html> </html>