Permalink
Browse files

Small improvements to builder and installer styling

  • Loading branch information...
nazar-pc committed Jan 30, 2018
1 parent bef8c5b commit d634d78d6390d80e55b807a02c6cf27b9434bca9

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -5,22 +5,14 @@
* @license 0BSD
*/
addEventListener('load', !->
labels = document.querySelectorAll('label')
modules = document.querySelector("[name='modules[]']")
themes = document.querySelector("[name='themes[]']")
document.querySelector('nav')?.addEventListener('click', (e) !->
if !e.target.matches('input')
return
for label in labels
if label.querySelector("[value=#{e.target.value}]")
label.classList.add('active')
else
label.classList.remove('active')
[modules.disabled, themes.disabled] = switch (e.target.value)
| 'core' => [false, false]
| 'module' => [false, true]
| 'theme' => [true, false]
)
if !document.querySelector('nav > label.active')
document.querySelector('nav > label')?.click()
)

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -39,21 +39,23 @@ section {
width : 520px;
nav {
label {
cs-label-button {
background-color : #666;
color : #aaa;
cursor : pointer;
display : inline-block;
height : 30px;
line-height : 30px;
position : relative;
padding : 0 30px;
&.active {
color : #ddd;
label {
cursor : pointer;
display : block;
height : 100%;
padding : 0 30px;
}
&:nth-child(n+1) {
&:nth-child(n + 1) {
margin-right : -10px;
}
@@ -68,6 +70,10 @@ section {
}
}
:checked + span {
color : #ddd;
}
input {
display : none;
}
@@ -15,7 +15,7 @@ function form () {
h::{'radio[name=mode]'}(
[
'value' => ['core', 'module', 'theme'],
'in' => ['Core', 'Module', 'Theme']
'in' => [h::span('Core'), h::span('Module'), h::span('Theme')]
]
)
).

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -45,21 +45,27 @@ section {
width : 520px;
nav {
label {
cs-label-button {
background-color : #666;
color : #aaa;
cursor : pointer;
display : inline-block;
height : 30px;
line-height : 30px;
position : relative;
padding : 0 30px;
&:nth-of-type(1) {
label {
cursor : pointer;
display : block;
height : 100%;
padding : 0 30px;
}
&:nth-child(n + 1) {
margin-right : -10px;
}
&:nth-of-type(2)::before {
&:nth-child(n + 2):before {
background-color : #d7d7d7;
content : "";
height : 30px;
@@ -1,7 +1,7 @@
{
"package" : "System",
"category" : "modules",
"version" : "7.69.0+build-2694",
"version" : "7.69.1+build-2695",
"description" : "Base system module of CleverStyle Framework",
"author" : "Nazar Mokrynskyi",
"website" : "cleverstyle.org/Framework",

0 comments on commit d634d78

Please sign in to comment.