Skip to content

Commit

Permalink
Merge pull request #58 from ciar4n/animate-form
Browse files Browse the repository at this point in the history
Animate that form - fix header
  • Loading branch information
Dimitri Grammatikogianni authored Jun 4, 2017
2 parents 4a91d2a + d81f374 commit 3eec79d
Show file tree
Hide file tree
Showing 7 changed files with 188 additions and 133 deletions.
1 change: 1 addition & 0 deletions installation/language/en-US/en-US.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ INSTL_STEP_SUMMARY_LABEL="Overview"

;Language view
INSTL_SELECT_LANGUAGE_TITLE="Select Language"
INSTL_SELECT_LANGUAGE_DESC="Select the language for the installation"
INSTL_WARNJAVASCRIPT="Warning! JavaScript must be enabled for proper installation of Joomla!"
INSTL_WARNJSON="Your PHP installation needs to have JSON enabled for Joomla to be installed!"

Expand Down
106 changes: 67 additions & 39 deletions installation/template/css/template.css
Original file line number Diff line number Diff line change
Expand Up @@ -8712,49 +8712,32 @@ form {

.container-header {
position: relative;
height: 230px;
height: 140px;
background-color: #1c3d5c; }

.container-main {
position: relative;
z-index: 1060;
padding-top: 100px;
padding-bottom: 80px;
margin-bottom: 100px;
background-color: #fff;
box-shadow: 0 0 80px rgba(0, 0, 0, 0.1), inset 0 7px 0 #e8e6e6; }

.header {
position: fixed;
z-index: 1080;
width: 100%;
color: #fff;
background-color: #1c3d5c;
background-repeat: no-repeat;
box-shadow: 0 7px 0 0 #2a5c8b; }
.header .logo {
width: 100%;
max-width: 380px;
margin-bottom: 20px; }
max-width: 280px;
margin-bottom: 15px; }
.header a {
color: #00afff; }

.install-form {
padding: 0 42px; }
.install-form form {
margin: 30px 0 0; }
.install-form input, .install-form textarea, .install-form select {
border-color: #b6bcc2; }
.install-form .progress {
margin-top: 10px; }
.install-form .text-muted {
color: #2a5c8b !important; }

.nav-steps {
position: absolute;
top: -20px;
bottom: -51px;
left: 0;
display: table;
width: 100%;
width: 960px;
padding: 0 140px;
margin: 0;
margin: 0 auto;
color: #182c3e;
list-style: none;
table-layout: fixed; }
Expand All @@ -8778,16 +8761,22 @@ form {
height: 3rem;
margin: 0 auto;
margin-bottom: .25rem;
font-family: "FontAwesome";
font-size: 1.2rem;
font-weight: bold;
line-height: 2.3rem;
text-align: center;
content: attr(data-step);
background-color: #4882b7;
background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%);
border: .4rem solid #e8e6e6;
border-radius: 100%;
box-shadow: 0 0 1px rgba(0, 0, 0, 0.3), inset 0 0 1px rgba(0, 0, 0, 0.3), inset 1px 1px 1px rgba(255, 255, 255, 0.3); }
.nav-steps > li[data-step="1"]::before {
content: "\f015"; }
.nav-steps > li[data-step="2"]::before {
content: "\f007"; }
.nav-steps > li[data-step="3"]::before {
content: "\f1e6"; }
.nav-steps > li::after {
position: absolute;
top: 1.2rem;
Expand All @@ -8800,16 +8789,28 @@ form {
background: #4882b7; }
.nav-steps > li:first-child::after {
display: none; }
.nav-steps > li.complete::before, .nav-steps > li.complete::after {
.nav-steps > li.active::before, .nav-steps > li.active::after {
background-color: #7ac143; }
.nav-steps > li.active::before {
color: #fff;
background-color: #f9a541; }
.nav-steps > li.disabled {
color: #1b3956; }
.nav-steps > li.disabled::before, .nav-steps > li.disabled::after {
color: #fff;
background-color: #4882b7; }

.container-main {
position: relative;
z-index: 1060;
padding-top: 200px;
padding-bottom: 80px;
margin-bottom: 100px;
background-color: #fff;
box-shadow: 0 0 80px rgba(0, 0, 0, 0.1), inset 0 7px 0 #e8e6e6; }

.install-form {
padding: 0 42px; }
.install-form form {
margin: 30px 0 0; }
.install-form input, .install-form textarea, .install-form select {
border-color: #b6bcc2; }
.install-form .progress {
margin-top: 10px; }
.install-form .text-muted {
color: #2a5c8b !important; }

.languageForm {
padding: 0 0 30px; }
Expand Down Expand Up @@ -8874,6 +8875,33 @@ form {
display: none; }

.install-step {
display: none; }
.install-step.active {
display: block; }
padding-top: 200px;
margin-top: -200px; }
.install-step .form-group {
opacity: 0;
transition: all .3s ease;
transform: translateY(30px); }
.install-step select {
width: 100%;
margin-left: 0 !important; }

.active .form-group {
opacity: 1;
transform: translateY(0); }
.active .form-group:first-of-type {
transition-delay: .1s; }
.active .form-group:nth-of-type(2) {
transition-delay: .15s; }
.active .form-group:nth-of-type(3) {
transition-delay: .2s; }
.active .form-group:nth-of-type(4) {
transition-delay: .25s; }
.active .form-group:nth-of-type(5) {
transition-delay: .3s; }
.active .form-group:nth-of-type(6) {
transition-delay: .35s; }

.btn-success {
color: #fff;
background-color: #75b544;
border-color: #75b544; }
2 changes: 1 addition & 1 deletion installation/template/css/template.css.map

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions installation/template/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,22 +58,22 @@
<body data-basepath="<?php echo JUri::root(true); ?>">
<?php // Header ?>
<div class="header">
<div id="top-header" class="container container-header d-flex align-items-center justify-content-center">
<div id="top-header" class="container container-header d-flex justify-content-center">
<img src="<?php echo $this->baseurl ?>/template/images/logo.svg" alt="Joomla" class="logo"/>
<ul class="nav-steps">
<li class="step active" id="site" data-step="1">
<a class="nav-link" href="#"></a></li>
<li class="step" data-step="2">
<a class="nav-link" id="database" href="#" ></a>
</li>
<li class="step disabled " id="summary " data-step="3">
<a class="nav-link disabled"></a>
</li>
</ul>
</div>
</div>
<?php // Container ?>
<div class="container container-main">
<ul class="nav-steps">
<li class="step" id="site " data-step="1">
<a class="nav-link" href="#">Configuration</a></li>
<li class="step" data-step="2">
<a class="nav-link" id="database" href="#" >Database</a>
</li>
<li class="step disabled " id="summary " data-step="3">
<a class="nav-link disabled">Overview</a>
</li>
</ul>
<jdoc:include type="message" />
<div id="javascript-warning">
<noscript>
Expand Down
5 changes: 0 additions & 5 deletions installation/template/js/installation.js
Original file line number Diff line number Diff line change
Expand Up @@ -650,11 +650,6 @@ console.log(Joomla.makeRandomDbPrefix())
//if (state === true) Install.install(['config']);
};

var langSel = document.getElementById('languageForm');

if (langSel)
document.getElementById('top-header').appendChild(langSel);

var inputs = [].slice.call(document.querySelectorAll('input[type="password"], input[type="text"], input[type="email"], select'));
console.log(inputs)
//<select id="jform_language" class="custom-select required ml-2"></select>
Expand Down
Loading

0 comments on commit 3eec79d

Please sign in to comment.