Skip to content

Commit

Permalink
ui/login: Add the UI resources to customize the Dex login page
Browse files Browse the repository at this point in the history
The three files will be mounted in web/themes/scality in order to render our customized theme

Refs: #2016
  • Loading branch information
ChengYanJin committed Nov 23, 2019
1 parent d310f34 commit deaec45
Show file tree
Hide file tree
Showing 3 changed files with 120 additions and 0 deletions.
Binary file added ui/public/brand/assets/login/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ui/public/brand/assets/login/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
120 changes: 120 additions & 0 deletions ui/public/brand/assets/login/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
.theme-body {
text-align: center;
background-color: #121214;
color: #FEFEFE;
font-family: 'Source Sans Pro', Helvetica, sans-serif;
}

.theme-navbar {
background-color: #121214;
color: #FEFEFE;
font-size: 13px;
font-weight: 100;
height: 46px;
overflow: hidden;
padding: 0 10px;
}

.theme-navbar__logo-wrap {
display: inline-block;
height: 100%;
overflow: hidden;
padding: 10px 15px;
width: 300px;
}

.theme-navbar__logo {
height: 100%;
max-height: 25px;
}

.theme-heading {
font-size: 20px;
font-weight: 500;
margin-bottom: 10px;
margin-top: 0;
color:#FEFEFE;
}

.theme-panel {
display: inline-block;
text-align: center;
background-color: #32323B;
padding: 30px;
width: 500px;
}

.theme-btn-provider {
background-color: #fff;
color: #333;
min-width: 250px;
}

.theme-btn-provider:hover {
color: #999;
}

.theme-btn--primary {
background-color: #057AFF;
border: none;
color: #fff;
min-width: 250px;
padding: 6px 12px;
height: 36px;
border-radius: 4px;
}

.theme-btn--primary:hover {
background-color: #057AFF;
color: #fff;
}

.theme-btn--success {
background-color: #2FC98E;
color: #fff;
width: 250px;
}

.theme-btn--success:hover {
background-color: #49E3A8;
}

.theme-form-row {
display: block;
margin: 20px auto;
}

.theme-form-input {
border-radius: 4px;
border: 1px solid #666;
box-shadow: inset 0 1px 1px rgba(87, 66, 66, 0.075);
color: #666;
display: block;
font-size: 14px;
height: 36px;
line-height: 1.42857143;
margin: auto;
padding: 6px 12px;
width: 250px;
background-color: #121214;
}

.theme-form-input:focus,
.theme-form-input:active {
border-color: #66AFE9;
outline: none;
}

.theme-form-label {
font-size: 13px;
font-weight: 600;
margin: 4px auto;
position: relative;
text-align: left;
width: 250px;
color:#FEFEFE;
}

.theme-link-back {
margin-top: 4px;
}

0 comments on commit deaec45

Please sign in to comment.