Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the first run wizard more helpful #57

Merged
merged 12 commits into from
May 3, 2018
82 changes: 0 additions & 82 deletions css/firstrunwizard.css

This file was deleted.

240 changes: 240 additions & 0 deletions css/firstrunwizard.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,240 @@
#cboxLoadedContent {
border-radius: 3px;
}

#firstrunwizard .firstrunwizard-header {
padding: 20px 12px;
background-color: #0082c9;
background-image: url($image-login-background);
background-position: 50% 50%;
background-repeat: no-repeat;
background-size: cover;
color: #fff;
text-align: center;
}
#firstrunwizard .firstrunwizard-header .logo {
background-image: url($image-logo);
background-repeat: no-repeat;
background-size: 175px;
background-position: center;
width: 252px;
height: 120px;
margin: 0 auto;
}

#firstrunwizard .firstrunwizard-content {
margin: 12px;
}

#firstrunwizard h1 {
font-size: 40px;
font-weight: 300;
line-height: 120%;
padding: 0 0 10px
}

#firstrunwizard h2 {
margin: 30px 0 10px;
line-height: 120%;
padding: 0;
}

.clientslinks .appsmall {
height: 32px;
width: 32px;
position: relative;
opacity: .5;
vertical-align: middle;
}
.clientslinks .button {
display: inline-block;
padding: 8px;
font-weight: normal;
font-size: 14px;
}

#firstrunwizard .page {
margin-bottom: 60px;
display: flex;
flex-direction: row;
flex-wrap: wrap;
h2 {
margin: 0 0 10px 0;
}
.image {
padding: 20px;
max-width: calc(50% - 40px);
flex-grow: 1;
img {
width: 100%;
}
}
.content {
padding: 20px;
}
p {
margin-bottom: 20px;
}
.description-block {
margin-bottom: 40px;
}
.description {
margin: 20px;
width: auto;
flex-grow: 1;
max-width: calc(50% - 40px);
}
ul {
margin: 10px;
li {
margin-left: 20px;
margin-bottom: 10px;
list-style-type: circle;
list-style-position: outside;
}
}
a:not(.button) {
text-decoration: underline;
}
.button {
display: inline-block;

img {
width: 16px;
height: 16px;
opacity: .5;
margin-top: -3px;
vertical-align: middle;
}
}
}
#firstrunwizard {
.content-clients {
width: 100%;
text-align: center;
a {
text-decoration: none;
display: inline-block;
}
}
.content-final {
h2 {
background-position: 0;
background-size: 16px 16px;
padding-left: 26px;
opacity: .7;
}
}
}

.wizard-navigation {
display: flex;
position: absolute;
bottom: 10px;
width: calc(100% - 24px);
.prev, .next {
flex-grow: 1;
flex-basis: 200px;
}
.next {
text-align: right;
}
.position-indicator {
list-style-type: circle;
list-style-position: inside;
padding: 0;
margin: 10px 0 0;
color: $color-primary;
font-size: 120%;
li {
float:left;
&.active {
list-style-type: disc;
}
}
}
}
#firstrunwizard p a {
font-weight: bold;
color: #0082c9;
}
#firstrunwizard p a:hover,
#firstrunwizard p a:focus {
color: #444;
}
#firstrunwizard .footnote {
margin-top: 40px;
}

#firstrunwizard .close {
position: absolute;
top: 0;
right: 0;
padding: 10px;
}

.clientslinks {
margin-top: 20px;
margin-bottom: 20px;
}

#firstrunwizard .page #wizard-values {
list-style-type: none;
display: flex;
flex-wrap: wrap;
li {
display: block;
min-width: 250px;
width: 33%;
flex-grow: 1;
margin: 20px 0 20px 0;
span {
opacity: .7;
display: block;
height: 50px;
background-size: 40px;
}
h2 {
margin: 10px 0 10px 0;
font-size: 130%;
text-align: center;
}
}
}

.details-link {
text-align: center;
}

.icon-source {
background-image: url('../img/source.svg');
}
.icon-world {
background-image: url('../img/world.svg');
}

@media only screen and (max-width: 680px) {
#firstrunwizard {
.firstrunwizard-header div.logo {
background-size: 120px;
}
h1 {
font-size: 20px;
}
.page > div {
max-width: 100% !important;
width: 100%;
}
#wizard-values li {
min-width: 100%;
overflow: hidden;
span, h2 {
font-size: 12px;
float:left;
}
}
.page .content {
padding: 0;
}
}
}
Binary file added img/appstore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions img/world.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion js/activate.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
$(document).ready(function() {
showFirstRunWizard();
OCA.FirstRunWizard.Wizard.showFirstRunWizard();
});
Loading