mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-10 09:06:21 +01:00
Restructure Alliance Auth package (#867)
* Refactor allianceauth into its own package * Add setup * Add missing default_app_config declarations * Fix timerboard namespacing * Remove obsolete future imports * Remove py2 mock support * Remove six * Add experimental 3.7 support and multiple Dj versions * Remove python_2_unicode_compatible * Add navhelper as local package * Update requirements
This commit is contained in:
20
allianceauth/static/css/auth-base.css
Normal file
20
allianceauth/static/css/auth-base.css
Normal file
@@ -0,0 +1,20 @@
|
||||
.grayiconecolor {
|
||||
color: #505050;
|
||||
}
|
||||
#lang_select {
|
||||
margin-right: 25px;
|
||||
}
|
||||
|
||||
#f_lang_select {
|
||||
margin-right: 5px;
|
||||
}
|
||||
.navbar-brand {
|
||||
height: 58px;
|
||||
padding: 19px 19px;
|
||||
}
|
||||
.auth-navbar-top {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.auth-sidebar {
|
||||
margin-top: 1px;
|
||||
}
|
||||
58
allianceauth/static/css/checkbox.css
Normal file
58
allianceauth/static/css/checkbox.css
Normal file
@@ -0,0 +1,58 @@
|
||||
.checkbox label:after,
|
||||
.radio label:after {
|
||||
content: '';
|
||||
display: table;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.checkbox .cr,
|
||||
.radio .cr {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
border: 1px solid #a9a9a9;
|
||||
border-radius: .25em;
|
||||
width: 1.3em;
|
||||
height: 1.3em;
|
||||
float: left;
|
||||
margin-right: .5em;
|
||||
}
|
||||
|
||||
.radio .cr {
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.checkbox .cr .cr-icon,
|
||||
.radio .cr .cr-icon {
|
||||
position: absolute;
|
||||
font-size: .8em;
|
||||
line-height: 0;
|
||||
top: 50%;
|
||||
left: 20%;
|
||||
}
|
||||
|
||||
.radio .cr .cr-icon {
|
||||
margin-left: 0.04em;
|
||||
}
|
||||
|
||||
.checkbox label input[type="checkbox"],
|
||||
.radio label input[type="radio"] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.checkbox label input[type="checkbox"] + .cr > .cr-icon,
|
||||
.radio label input[type="radio"] + .cr > .cr-icon {
|
||||
transform: scale(3) rotateZ(-20deg);
|
||||
opacity: 0;
|
||||
transition: all .3s ease-in;
|
||||
}
|
||||
|
||||
.checkbox label input[type="checkbox"]:checked + .cr > .cr-icon,
|
||||
.radio label input[type="radio"]:checked + .cr > .cr-icon {
|
||||
transform: scale(1) rotateZ(0deg);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.checkbox label input[type="checkbox"]:disabled + .cr,
|
||||
.radio label input[type="radio"]:disabled + .cr {
|
||||
opacity: .5;
|
||||
}
|
||||
15
allianceauth/static/js/timers.js
Normal file
15
allianceauth/static/js/timers.js
Normal file
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* Get a duration string like countdown.js
|
||||
* e.g. "1y 2d 3h 4m 5s"
|
||||
* @param duration moment.duration
|
||||
*/
|
||||
function getDurationString(duration) {
|
||||
var out = "";
|
||||
if (duration.years()) {
|
||||
out += duration.years() + 'y ';
|
||||
}
|
||||
if (duration.days()) {
|
||||
out += duration.days() + 'd ';
|
||||
}
|
||||
return out + duration.hours() + "h " + duration.minutes() + "m " + duration.seconds() + "s";
|
||||
}
|
||||
Reference in New Issue
Block a user