Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
彭彦祖
code-server
提交
9b7a203f
C
code-server
项目概览
彭彦祖
/
code-server
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
code-server
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
9b7a203f
编写于
2月 20, 2020
作者:
A
Anmol Sethi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Make login page pretty
上级
e44ac0a3
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
47 addition
and
21 deletion
+47
-21
src/browser/pages/global.css
src/browser/pages/global.css
+1
-1
src/browser/pages/login.css
src/browser/pages/login.css
+43
-16
src/browser/pages/login.html
src/browser/pages/login.html
+3
-4
未找到文件。
src/browser/pages/global.css
浏览文件 @
9b7a203f
...
...
@@ -7,7 +7,7 @@ body,
}
body
{
background
:
#272727
;
background
:
rgb
(
244
,
247
,
252
)
;
color
:
#f4f4f4
;
margin
:
0
;
font-family
:
-apple-system
,
BlinkMacSystemFont
,
"Segoe UI"
,
Roboto
,
Helvetica
,
Arial
,
sans-serif
,
"Apple Color Emoji"
,
...
...
src/browser/pages/login.css
浏览文件 @
9b7a203f
body
{
overflow
:
auto
;
}
.center-container
{
width
:
100vw
;
height
:
100vh
;
padding
:
20px
40px
;
min-height
:
400px
;
}
.login-form
{
align-items
:
center
;
background
:
#fcfcfc
;
border-radius
:
10px
;
box-shadow
:
0
4px
10px
rgba
(
0
,
0
,
0
,
0.1
);
border-radius
:
5px
;
box-shadow
:
rgba
(
60
,
66
,
87
,
0.117647
)
0px
7px
14px
0px
,
rgba
(
0
,
0
,
0
,
0.117647
)
0px
3px
6px
0px
;
color
:
rgba
(
0
,
0
,
0
,
0.37
);
display
:
flex
;
flex-direction
:
column
;
flex
:
1
;
height
:
100%
;
justify-content
:
center
;
max-height
:
400px
;
max-width
:
664px
;
padding
:
20px
;
padding
:
20px
40px
;
position
:
relative
;
width
:
100%
;
height
:
300px
;
min-width
:
320px
;
max-width
:
500px
;
}
.main
{
font-size
:
40px
;
}
.login-form
>
.header
{
align-items
:
center
;
color
:
#b6b6b6
;
margin-bottom
:
1rem
;
color
:
black
;
}
.login-form
>
.header
>
.sub
{
margin-top
:
10px
;
}
.login-form
>
.field
{
margin-top
:
40px
;
display
:
flex
;
flex-direction
:
row
;
width
:
100%
;
height
:
50px
;
}
.login-form
>
.error
{
...
...
@@ -34,10 +51,15 @@
}
.login-form
>
.field
>
.password
{
border
:
1px
solid
#b6b6b6
;
border
:
1px
solid
#ddd
;
background
:
rgb
(
244
,
247
,
252
);
box-sizing
:
border-box
;
padding
:
1rem
;
flex
:
1
;
font-size
:
20px
;
border-radius
:
5px
;
color
:
black
;
min-width
:
100px
;
}
.login-form
>
.user
{
...
...
@@ -45,9 +67,14 @@
}
.login-form
>
.field
>
.submit
{
background-color
:
transparent
;
border
:
1px
solid
#b6b6b6
;
font-size
:
20px
;
border
:
none
;
box-sizing
:
border-box
;
margin-left
:
-1px
;
padding
:
1rem
2rem
;
margin-left
:
20px
;
background-color
:
rgb
(
87
,
114
,
245
);
color
:
white
;
font-family
:
monospace
;
padding
:
10px
20px
;
border-radius
:
5px
;
}
src/browser/pages/login.html
浏览文件 @
9b7a203f
...
...
@@ -38,13 +38,12 @@
onfocus=
"const value=this.value;this.value='';this.value=value;"
class=
"password"
type=
"password"
placeholder=
"
password
"
placeholder=
"
PASSWORD
"
name=
"password"
autocomplete=
"current-password"
/>
<button
class=
"submit"
type=
"submit"
>
Log In
</button>
<input
class=
"submit"
value=
"SUBMIT"
type=
"submit"
/>
</div>
{{ERROR}}
</form>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录