-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! Remove SSO-app and django-oauth-toolkit
More stuff that should have been isolated
- Loading branch information
1 parent
3402651
commit d2ce722
Showing
5 changed files
with
130 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from django import template | ||
|
||
register = template.Library() | ||
|
||
|
||
@register.filter | ||
def zip_lists(a, b): | ||
return zip(a, b) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import './less/sso.less'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
#sso-container { | ||
max-width: 480px; | ||
margin: 0 auto; | ||
} | ||
|
||
body, | ||
html { | ||
min-height: 100%; | ||
background-color: white; | ||
} | ||
|
||
#sso-panel { | ||
//border: 1px solid #004b80; | ||
margin: 60px 0 32px; | ||
padding-bottom: 10px; | ||
|
||
@media screen and (max-width: 767px) { | ||
margin: 16px; | ||
} | ||
} | ||
|
||
#sso-panel-header { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
position: relative; | ||
height: 110px; | ||
|
||
img { | ||
background-color: #004b80; | ||
border-radius: 50% 50%; | ||
max-height: 90px; | ||
max-width: 90px; | ||
padding: 10px; | ||
z-index: 1; // To stay on top of the empty div with blue background named blue-header-top | ||
} | ||
|
||
#sso-blue-header-top { | ||
position: absolute; | ||
bottom: 0; | ||
background-color: #004b80; | ||
min-height: 50px; | ||
height: 50%; | ||
width: 100%; | ||
border-radius: 15px 15px 0 0; | ||
box-shadow: | ||
0 6px 10px 0 rgba(0, 0, 0, 0.15), | ||
0 6px 10px 0 rgba(0, 0, 0, 0.11); | ||
} | ||
} | ||
|
||
#sso-panel-body { | ||
position: relative; | ||
z-index: 1; // For staying on top of the shadow from the header | ||
box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.15), 0 6px 10px 0 rgba(0, 0, 0, 0.11); | ||
background-color: #eee; | ||
padding: 20px 20px 0 20px; | ||
border: 4px #004b80 solid; | ||
border-top: none; | ||
border-radius: 0 0 15px 15px; | ||
|
||
& > h4 { | ||
text-align: center; | ||
margin-top: 5px; | ||
margin-bottom: 20px; | ||
font-size: 20px; | ||
font-weight: bold; | ||
line-height: 16px; | ||
} | ||
} | ||
|
||
#sso-authorization-form { | ||
& > section > p { | ||
text-align: center; | ||
font-size: 16px; | ||
|
||
&::after { | ||
content: ' '; | ||
display: block; | ||
margin: 10px auto; | ||
width: 30%; | ||
border-bottom: 1px #636363 solid; | ||
} | ||
} | ||
|
||
.sso-permissions { | ||
background-color: #fff; | ||
padding: 15px; | ||
border: 1px solid #aaa; | ||
border-radius: 4px; | ||
|
||
li { | ||
padding: 5px 0; | ||
} | ||
} | ||
} | ||
|
||
#sso-control-buttons { | ||
display: flex; | ||
margin: 10px 0; | ||
justify-content: space-around; | ||
} | ||
|
||
#sso-app-display { | ||
padding: 20px 0 5px; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
margin-bottom: 0; | ||
|
||
& h4 { | ||
font-size: 16px; | ||
font-weight: bold; | ||
} | ||
|
||
& img { | ||
max-width: 130px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters