Skip to content

Conversation

@CodeyBoi
Copy link

Also changed many instances of the color light-orange to fsek-orange, because fsek-orange is objectively superior.

background: $fsek-orange;
}

.md .theme-dark label.item-checkbox input[type=checkbox]:checked~.icon-checkbox,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid qualifying attribute selectors with an element.
Avoid qualifying class selectors with an element.
Selector should have depth of applicability no greater than 2, but was 4

background: $fsek-orange;
}

.ios .color-theme-orange label.item-checkbox input[type=checkbox]:checked~.icon-checkbox,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid qualifying attribute selectors with an element.
Avoid qualifying class selectors with an element.
Selector should have depth of applicability no greater than 2, but was 4

background: $fsek-orange;
}

.ios .toggle input[type=checkbox]:checked+.toggle-icon {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid qualifying attribute selectors with an element.
Selector should have depth of applicability no greater than 2, but was 3

background: rgba(255,152,0,.5);
}

.md .input-focused:after, .md .item-input-focused .item-input-wrap:after {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Begin pseudo elements with double colons: ::
Each selector in a comma sequence should be on its own single line
Selector should have depth of applicability no greater than 2, but was 3

}

.md .theme-dark .toggle input[type=checkbox]:checked+.toggle-icon {
background: rgba(255,152,0,.5);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Color literals like rgba(255, 152, 0, 0.5) should only be used in variable declarations; they should be referred to via variable everywhere else.
Commas in function arguments should be followed by one space
.5 should be written with a leading zero as 0.5

}

.theme-dark .input-with-value {
color: white;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Color white should be written in hexadecimal form as #ffffff
Color literals like white should only be used in variable declarations; they should be referred to via variable everywhere else.

}

.theme-dark .searchbar {
background-color: $dark-gray !important;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

!important should not be used

background-color: $white;
}

.theme-dark .song-content .song-text {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Selector should have depth of applicability no greater than 2, but was 3

color: $black;
}

.theme-dark .song-content .block {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Selector should have depth of applicability no greater than 2, but was 3

line-height: initial;
}

.theme-dark .song-content .block-title{

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opening curly brace { should be preceded by one space
Selector should have depth of applicability no greater than 2, but was 3

background: $fsek-orange;
}

.md .input-focused::after,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Selector should have depth of applicability no greater than 2, but was 3

}

.user-container {
color: $black;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Properties should be ordered background-color, color, height, padding-top, width

}

.songbook-content .list ul::before, .songbook-content .list ul:after{
.songbook-content .list ul::before, .songbook-content .list ul:after {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Begin pseudo elements with double colons: ::
Each selector in a comma sequence should be on its own single line
Selector should have depth of applicability no greater than 2, but was 3

}

.song-content .song-text .block-inner{
.song-content .song-text .block-inner {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merge rule .song-content .song-text .block-inner with rule on line 58
Selector should have depth of applicability no greater than 2, but was 3

background-color: $dark-gray;
}

.song-content .song-text p:last-child {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merge rule .song-content .song-text p:last-child with rule on line 58
Selector should have depth of applicability no greater than 2, but was 3

background-attachment: fixed;
background-size: 200% 100% !important;
background-image: url("../img/login-background_full.png") !important;
background-repeat: no-repeat !important;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

!important should not be used

background-repeat: no-repeat;
background-attachment: fixed;
background-size: 200% 100% !important;
background-image: url("../img/login-background_full.png") !important;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

!important should not be used

background-image: url("../img/login-background_full.png");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: 200% 100% !important;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

!important should not be used
Properties should be ordered background-attachment, background-image, background-repeat, background-size, height, overflow

}

.ios .theme-dark {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line contains trailing whitespace

background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D'12'%20height%3D'20'%20viewBox%3D'0%200%2012%2020'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M.18261596%209.4221638c.0352203-.05148305.07573462-.10050698.1215468-.14631917L9.1425872.4374202c.5830904-.58309038%201.52656832-.5849888%202.11643872.00488163.5857864.58578644.591222%201.53009836.0048816%202.11643873L3.82594417%209.9967039l7.43188553%207.4318855c.5830904.5830904.5849888%201.5265683-.0048817%202.1164387-.5857864.5857865-1.5300983.591222-2.11643868.0048816L.2980849%2010.7114853c-.3526746-.3526746-.3939974-.89699-.11546894-1.2893215z'%20fill%3D'%23ff9500'%20fill-rule%3D'evenodd'%2F%3E%3C%2Fsvg%3E");
}

.ios .theme-dark {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Empty rule

@Lullebullelukas Lullebullelukas self-requested a review November 3, 2020 15:05
font-weight: bold;
font-size: 27px;
color: $fsek-orange;
color: $fsek-orange !important;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lmao

Copy link
Contributor

@Lullebullelukas Lullebullelukas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great overall, however there are two things I would like you to fix before we merge this, first is the color of the send button in the chat function which behaves weirdly, it should be orange! The other thing that needs fixing is when using the android styling the boxes on the account settings explaining what each option does appears white right now when it should be black or gray.

It might be easier to fix this after we merge the introduction removal or if you are eager you could rebase your branch to mine named introduction_removal_2020

In any case great job Hannes!

}

.messagebar a.link {
color: $fsek-orange !important;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

!important should not be used

color: $fsek-orange;
}

.messagebar a.link {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid qualifying class selectors with an element.

background-color: $fsek-orange;
}

.md .color-theme-orange .navbar,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Selector should have depth of applicability no greater than 2, but was 3

color: $light-gray !important;
}

.ios .color-theme-orange .navbar,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Selector should have depth of applicability no greater than 2, but was 3

}

.theme-dark .item-link {
color: $light-gray !important;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

!important should not be used

background: $black;
}

.ios .color-theme-orange label.item-radio input[type=radio]:checked~.icon-radio,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid qualifying attribute selectors with an element.
Avoid qualifying class selectors with an element.
Selector should have depth of applicability no greater than 2, but was 4

background: $white;
}

.theme-dark #contact-form .item-content.item-input {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid using id selectors
Selector should have depth of applicability no greater than 2, but was 3

background: $white;
}

.theme-dark #contact-description,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid using id selectors

color: $black;
}

.theme-dark .day-content-event .card-content-inner {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Selector should have depth of applicability no greater than 2, but was 3

background-color: $white;
}

.theme-dark .calendar .calendar-week-header {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merge rule .theme-dark .calendar .calendar-week-header with rule on line 1
Selector should have depth of applicability no greater than 2, but was 3

color: $fsek-orange;
}

.md .messagebar a.link,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid qualifying class selectors with an element.
Selector should have depth of applicability no greater than 2, but was 4

}

.theme-dark .cafe-content .black-text {
color: $light-gray !important;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

!important should not be used

border-right-color: $dark-gray !important;
}

.theme-dark .cafe-content .black-text {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Selector should have depth of applicability no greater than 2, but was 3

}

.theme-dark .cafe-content .friday {
border-right-color: $dark-gray !important;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

!important should not be used

background-color: $black !important;
}

.theme-dark .cafe-content .friday {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Selector should have depth of applicability no greater than 2, but was 3


.timeline-year-title, .timeline-month-title {
color: black !important;
color: $black !important;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

!important should not be used

}

.theme-dark .black-text {
color: $light-gray !important;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

!important should not be used

color: $black;
}

.theme-dark .black-text {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Selector should have depth of applicability no greater than 2, but was 3

}

.theme-dark .white-text {
color: $black !important;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

!important should not be used

color: $white;
}

.theme-dark .white-text {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Selector should have depth of applicability no greater than 2, but was 3

}

.album-content .block span{
.album-content .block span {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Selector should have depth of applicability no greater than 2, but was 3

font-weight: bold;
font-size: 27px;
color: $fsek-orange;
color: $fsek-orange !important;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

!important should not be used

} else {
localStorage.setItem('dark-mode', 'off');
$('body').attr('class', 'color-theme-orange');
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expected indentation of 6 spaces but found 8 indent

$('body').attr('class', 'theme-dark');
} else {
localStorage.setItem('dark-mode', 'off');
$('body').attr('class', 'color-theme-orange');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expected indentation of 8 spaces but found 10 indent

localStorage.setItem('dark-mode', 'on');
$('body').attr('class', 'theme-dark');
} else {
localStorage.setItem('dark-mode', 'off');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expected indentation of 8 spaces but found 10 indent

});

if ($('input[name="dark_mode"]').prop('checked')) {
localStorage.setItem('dark-mode', 'on');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expected indentation of 8 spaces but found 10 indent

app.dialog.alert('Kunde inte uppdatera dina användarinställningar. Kontrollera din internetanslutning och försök igen :(', 'Misslyckades att spara');
});

if ($('input[name="dark_mode"]').prop('checked')) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expected indentation of 6 spaces but found 8 indent

userContent.find('#user-member-at').html('Medlemskap sedan ' + memberDate);

// Toggles the dark mode checkbox
if (localStorage.getItem('dark-mode') == 'on') {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expected '===' and instead saw '==' eqeqeq

*/
document.addEventListener('deviceready', function() {
// Sets app to dark mode, if turned on
if (localStorage.getItem('dark-mode') == 'on') {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expected '===' and instead saw '==' eqeqeq

if (sameDay(startDate, endDate)) {
switch (eventData.dot) {
case 'single':
case 'single'key: "value",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Parsing error: Unexpected token key

Copy link
Contributor

@Lullebullelukas Lullebullelukas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This now works! Good job Hannes. Whenever we figure out the new release we I will for sure run dark mode on my device. Awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants