Fix Stylelint errors

This commit is contained in:
Simounet 2023-06-06 22:53:56 +02:00
parent 5f8948d5a1
commit e5b72f3123
No known key found for this signature in database
GPG key ID: 77D3B7DC794EB770
17 changed files with 42 additions and 51 deletions

View file

@ -54,7 +54,7 @@
} }
a { a {
border-bottom: 1px dotted $blueAccentColor; border-bottom: 1px dotted $blue-accent-color;
text-decoration: none; text-decoration: none;
} }
@ -105,7 +105,7 @@
margin: 2.1rem 0 0.68rem; margin: 2.1rem 0 0.68rem;
} }
aside { .entry-info {
.tools { .tools {
display: flex; display: flex;
flex-flow: row wrap; flex-flow: row wrap;

View file

@ -73,7 +73,7 @@ main {
.card-entry-labels-hidden li { .card-entry-labels-hidden li {
display: inline-block; display: inline-block;
background-color: $blueAccentColor; background-color: $blue-accent-color;
margin: 0 5px; margin: 0 5px;
padding: 5px 12px; padding: 5px 12px;
border-radius: 3px; border-radius: 3px;
@ -85,10 +85,6 @@ main {
white-space: nowrap; white-space: nowrap;
} }
.card-content .estimatedTime {
margin-bottom: 10px;
}
.card-action { .card-action {
padding: 10px 10px 10px 15px; padding: 10px 10px 10px 15px;
@ -160,7 +156,7 @@ a.original:not(.waves-effect) {
.card-tag-labels li { .card-tag-labels li {
margin: 10px 10px 10px auto; margin: 10px 10px 10px auto;
padding: 5px 12px 5px 16px !important; padding: 5px 12px 5px 16px !important;
background-color: $blueAccentColor; background-color: $blue-accent-color;
border-radius: 3px; border-radius: 3px;
color: #fff; color: #fff;
cursor: default; cursor: default;
@ -251,7 +247,7 @@ a.original:not(.waves-effect) {
} }
.chip { .chip {
background-color: $blueAccentColor; background-color: $blue-accent-color;
padding: 0 7px; padding: 0 7px;
margin: auto 1px; margin: auto 1px;
border-radius: 6px; border-radius: 6px;
@ -315,7 +311,7 @@ a.original:not(.waves-effect) {
color: #fff !important; color: #fff !important;
} }
.settings .div_tabs { .settings .tabs-container {
padding-bottom: 15px; padding-bottom: 15px;
} }

View file

@ -131,7 +131,7 @@
background-color: #282c34; background-color: #282c34;
} }
nav input { nav input {
color: #abb2bf; color: #abb2bf;
} }

View file

@ -27,7 +27,7 @@
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
/* Support for Safari and Chrome. */ /* Support for Safari and Chrome. */
text-rendering: optimizeLegibility; text-rendering: optimizelegibility;
/* Support for Firefox. */ /* Support for Firefox. */
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;

View file

@ -19,7 +19,7 @@ body {
} }
a { a {
color: $blueAccentColor; color: $blue-accent-color;
} }
main, main,

View file

@ -131,11 +131,11 @@ nav {
margin: 0 1%; margin: 0 1%;
} }
#button_filters { .button-filters {
display: none; display: none;
} }
#button_export { .button-export {
display: none; display: none;
} }

View file

@ -18,20 +18,16 @@
/* Hide useless blocks */ /* Hide useless blocks */
body > header, body > header,
#article_toolbar,
#links,
#sort,
body > footer, body > footer,
.top_link, .entry-tools,
div.tools,
header div, header div,
.messages, .messages,
.entry + .results, .entry + .results,
#slide-out, .left-bar,
.progress, .progress,
.hide-on-large-only, .hide-on-large-only,
#article > aside, .entry-info,
#article .mbm a { .title-edit {
display: none !important; display: none !important;
} }
@ -39,7 +35,7 @@
padding-left: 0 !important; padding-left: 0 !important;
} }
#article { .article {
margin: inherit !important; margin: inherit !important;
} }

View file

@ -45,6 +45,6 @@
font-weight: bold; font-weight: bold;
} }
span.numberItems { .items-number {
float: right; float: right;
} }

View file

@ -2,4 +2,4 @@
Variables Variables
========================================================================== */ ========================================================================== */
$blueAccentColor: #00acc1; $blue-accent-color: #00acc1;

View file

@ -9,7 +9,7 @@
<div class="card-panel settings"> <div class="card-panel settings">
<div class="row"> <div class="row">
<div class="div_tabs col s12"> <div class="tabs-container col s12">
<ul class="tabs"> <ul class="tabs">
<li class="tab col s12 m6 l3"><a class="active" href="#set1">{{ 'config.tab_menu.settings'|trans }}</a></li> <li class="tab col s12 m6 l3"><a class="active" href="#set1">{{ 'config.tab_menu.settings'|trans }}</a></li>
<li class="tab col s12 m6 l3"><a href="#set2">{{ 'config.tab_menu.feed'|trans }}</a></li> <li class="tab col s12 m6 l3"><a href="#set2">{{ 'config.tab_menu.feed'|trans }}</a></li>

View file

@ -36,7 +36,7 @@
</ul> </ul>
</div> </div>
</nav> </nav>
<ul id="slide-out" class="collapsible side-nav fixed reader-mode" data-collapsible="accordion"> <ul id="slide-out" class="left-bar collapsible side-nav fixed reader-mode" data-collapsible="accordion">
<li class="bold border-bottom hide-on-med-and-down"> <li class="bold border-bottom hide-on-med-and-down">
<a class="waves-effect collapsible-header" href="{{ path('homepage') }}"> <a class="waves-effect collapsible-header" href="{{ path('homepage') }}">
<i class="material-icons small">arrow_back</i> <i class="material-icons small">arrow_back</i>
@ -232,12 +232,12 @@
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<div id="article"> <div id="article" class="article">
<header class="mbm"> <header class="mbm">
<h1><span{% if entry.language is defined and entry.language is not null %} lang="{{ entry.getHTMLLanguage() }}"{% endif %}>{{ entry.title|striptags|default('entry.default_title'|trans)|raw }}</span> <a href="{{ path('edit', {'id': entry.id}) }}" title="{{ 'entry.view.edit_title'|trans }}"><i class="material-icons grey-text">create</i></a></h1> <h1><span{% if entry.language is defined and entry.language is not null %} lang="{{ entry.getHTMLLanguage() }}"{% endif %}>{{ entry.title|striptags|default('entry.default_title'|trans)|raw }}</span> <a class="title-edit" href="{{ path('edit', {'id': entry.id}) }}" title="{{ 'entry.view.edit_title'|trans }}"><i class="material-icons grey-text">create</i></a></h1>
</header> </header>
<aside> <aside class="entry-info">
<div class="tools grey-text" dir="auto"> <div class="tools entry-tools grey-text" dir="auto">
<ul class="stats"> <ul class="stats">
<li> <li>
{% include "@WallabagCore/Entry/_reading_time.html.twig" with {'entry': entry} only %} {% include "@WallabagCore/Entry/_reading_time.html.twig" with {'entry': entry} only %}
@ -273,7 +273,7 @@
{% if entry.originUrl is not empty %} {% if entry.originUrl is not empty %}
<li> <li>
<i class="material-icons grey-text" title="{{ 'entry.view.provided_by'|trans }}">launch</i> <i class="material-icons grey-text" title="{{ 'entry.view.provided_by'|trans }}">launch</i>
<a href="{{ entry.originUrl|e }}" target="_blank" rel="noopener" class="tool grey-text"> <a href="{{ entry.originUrl|e }}" target="_blank" rel="noopener" class="tool grey-text" data-tests="entry-origin-url">
{{ entry.originUrl|striptags|removeSchemeAndWww|u.truncate(32) }} {{ entry.originUrl|striptags|removeSchemeAndWww|u.truncate(32) }}
</a> </a>
</li> </li>

View file

@ -9,7 +9,7 @@
<div class="card-panel settings"> <div class="card-panel settings">
<div class="row"> <div class="row">
<div class="div_tabs col s12"> <div class="tabs-container col s12">
<ul class="tabs"> <ul class="tabs">
<li class="tab col s12 m6 l3"><a class="active" href="#set1">{{ 'about.top_menu.who_behind_wallabag'|trans }}</a></li> <li class="tab col s12 m6 l3"><a class="active" href="#set1">{{ 'about.top_menu.who_behind_wallabag'|trans }}</a></li>
<li class="tab col s12 m6 l3"><a href="#set2">{{ 'about.top_menu.getting_help'|trans }}</a></li> <li class="tab col s12 m6 l3"><a href="#set2">{{ 'about.top_menu.getting_help'|trans }}</a></li>

View file

@ -9,7 +9,7 @@
<div class="card-panel settings"> <div class="card-panel settings">
<div class="row"> <div class="row">
<div class="div_tabs col s12"> <div class="tabs-container col s12">
<ul class="tabs"> <ul class="tabs">
<li class="tab col s12 m6 l3"><a class="active" href="#set1">{{ 'howto.tab_menu.add_link'|trans }}</a></li> <li class="tab col s12 m6 l3"><a class="active" href="#set1">{{ 'howto.tab_menu.add_link'|trans }}</a></li>
<li class="tab col s12 m6 l3"><a href="#set2">{{ 'howto.tab_menu.shortcuts'|trans }}</a></li> <li class="tab col s12 m6 l3"><a href="#set2">{{ 'howto.tab_menu.shortcuts'|trans }}</a></li>

View file

@ -25,7 +25,7 @@
{% block menu %} {% block menu %}
<nav class="cyan darken-1"> <nav class="cyan darken-1">
<ul id="slide-out" class="side-nav fixed"> <ul id="slide-out" class="left-bar side-nav fixed">
{% block logo %} {% block logo %}
<li class="logo border-bottom"> <li class="logo border-bottom">
<a title="{{ 'menu.left.back_to_unread'|trans }}" href="{{ path('unread') }}"> <a title="{{ 'menu.left.back_to_unread'|trans }}" href="{{ path('unread') }}">
@ -53,22 +53,22 @@
{% endif %} {% endif %}
<li class="bold {% if active_route == 'unread' %}active{% endif %}"> <li class="bold {% if active_route == 'unread' %}active{% endif %}">
<a class="waves-effect" href="{{ path('unread') }}">{{ 'menu.left.unread'|trans }} <span class="numberItems grey-text">{{ count_entries('unread') }}</span></a> <a class="waves-effect" href="{{ path('unread') }}">{{ 'menu.left.unread'|trans }} <span class="items-number grey-text">{{ count_entries('unread') }}</span></a>
</li> </li>
<li class="bold {% if active_route == 'starred' %}active{% endif %}"> <li class="bold {% if active_route == 'starred' %}active{% endif %}">
<a class="waves-effect" href="{{ path('starred') }}">{{ 'menu.left.starred'|trans }} <span class="numberItems grey-text">{{ count_entries('starred') }}</span></a> <a class="waves-effect" href="{{ path('starred') }}">{{ 'menu.left.starred'|trans }} <span class="items-number grey-text">{{ count_entries('starred') }}</span></a>
</li> </li>
<li class="bold {% if active_route == 'archive' %}active{% endif %}"> <li class="bold {% if active_route == 'archive' %}active{% endif %}">
<a class="waves-effect" href="{{ path('archive') }}">{{ 'menu.left.archive'|trans }} <span class="numberItems grey-text">{{ count_entries('archive') }}</span></a> <a class="waves-effect" href="{{ path('archive') }}">{{ 'menu.left.archive'|trans }} <span class="items-number grey-text">{{ count_entries('archive') }}</span></a>
</li> </li>
<li class="bold {% if active_route == 'annotated' %}active{% endif %}"> <li class="bold {% if active_route == 'annotated' %}active{% endif %}">
<a class="waves-effect" href="{{ path('annotated') }}">{{ 'menu.left.with_annotations'|trans }} <span class="numberItems grey-text">{{ count_entries('annotated') }}</span></a> <a class="waves-effect" href="{{ path('annotated') }}">{{ 'menu.left.with_annotations'|trans }} <span class="items-number grey-text">{{ count_entries('annotated') }}</span></a>
</li> </li>
<li class="bold {% if active_route == 'all' %}active{% endif %}"> <li class="bold {% if active_route == 'all' %}active{% endif %}">
<a class="waves-effect" href="{{ path('all') }}">{{ 'menu.left.all_articles'|trans }} <span class="numberItems grey-text">{{ count_entries('all') }}</span></a> <a class="waves-effect" href="{{ path('all') }}">{{ 'menu.left.all_articles'|trans }} <span class="items-number grey-text">{{ count_entries('all') }}</span></a>
</li> </li>
<li class="bold {% if current_route == 'tags' %}active{% endif %}"> <li class="bold {% if current_route == 'tags' %}active{% endif %}">
<a class="waves-effect" href="{{ path('tag') }}">{{ 'menu.left.tags'|trans }} <span class="numberItems grey-text">{{ count_tags() }}</span></a> <a class="waves-effect" href="{{ path('tag') }}">{{ 'menu.left.tags'|trans }} <span class="items-number grey-text">{{ count_tags() }}</span></a>
</li> </li>
</ul> </ul>
<div class="nav-panels"> <div class="nav-panels">
@ -98,12 +98,12 @@
</a> </a>
</li> </li>
{% endif %} {% endif %}
<li id="button_filters"> <li id="button_filters" class="button-filters">
<a class="nav-panel-menu button-collapse-right tooltipped js-filters-action" data-position="bottom" data-delay="50" data-tooltip="{{ 'menu.top.filter_entries'|trans }}" href="#" data-activates="filters"> <a class="nav-panel-menu button-collapse-right tooltipped js-filters-action" data-position="bottom" data-delay="50" data-tooltip="{{ 'menu.top.filter_entries'|trans }}" href="#" data-activates="filters">
<i class="material-icons">filter_list</i> <i class="material-icons">filter_list</i>
</a> </a>
</li> </li>
<li id="button_export"> <li id="button_export" class="button-export">
<a class="nav-panel-menu button-collapse-right tooltipped js-export-action" data-position="bottom" data-delay="50" data-tooltip="{{ 'menu.top.export'|trans }}" href="#" data-activates="export"> <a class="nav-panel-menu button-collapse-right tooltipped js-export-action" data-position="bottom" data-delay="50" data-tooltip="{{ 'menu.top.export'|trans }}" href="#" data-activates="export">
<i class="material-icons">file_download</i> <i class="material-icons">file_download</i>
</a> </a>

View file

@ -591,8 +591,8 @@ class EntryControllerTest extends WallabagCoreTestCase
$this->assertGreaterThan(1, $title = $crawler->filter('div[id=article] h1')->extract(['_text'])); $this->assertGreaterThan(1, $title = $crawler->filter('div[id=article] h1')->extract(['_text']));
$this->assertStringContainsString('My updated title hehe :)', $title[0]); $this->assertStringContainsString('My updated title hehe :)', $title[0]);
$this->assertGreaterThan(1, $stats = $crawler->filter('div[class="tools grey-text"] ul[class=stats] li a[class="tool grey-text"]')->extract(['_text'])); $originUrl = $crawler->filter('[data-tests="entry-origin-url"]')->text();
$this->assertStringContainsString('example.io', trim($stats[1])); $this->assertStringContainsString('example.io', $originUrl);
} }
public function testEditRemoveOriginUrl() public function testEditRemoveOriginUrl()
@ -626,9 +626,8 @@ class EntryControllerTest extends WallabagCoreTestCase
$this->assertGreaterThan(1, $title); $this->assertGreaterThan(1, $title);
$this->assertStringContainsString('My updated title hehe :)', $title[0]); $this->assertStringContainsString('My updated title hehe :)', $title[0]);
$stats = $crawler->filter('div[class="tools grey-text"] ul[class=stats] li a[class="tool grey-text"]')->extract(['_text']); $originUrl = $crawler->filter('[data-tests="entry-origin-url"]')->extract(['_text']);
$this->assertCount(1, $stats); $this->assertCount(0, $originUrl);
$this->assertStringNotContainsString('example.io', trim($stats[0]));
} }
public function testToggleArchive() public function testToggleArchive()

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long