Add PHPStan and other quality checks
Similar to FreshRSS core Contributes to https://github.com/FreshRSS/Extensions/issues/184
This commit is contained in:
parent
a86467db48
commit
b49596818c
59 changed files with 1173 additions and 404 deletions
|
|
@ -9,4 +9,4 @@ The css code used to wrap long titles was originally [proposed](https://github.c
|
|||
|
||||
## Changelog
|
||||
|
||||
- 0.1 initial version
|
||||
- 0.1 initial version
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
class TitleWrapExtension extends Minz_Extension {
|
||||
public function init() {
|
||||
Minz_View::appendStyle($this->getFileUrl('title_wrap.css', 'css'));
|
||||
public function init(): void {
|
||||
Minz_View::appendStyle($this->getFileUrl('title_wrap.css', 'css'));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,21 +1,26 @@
|
|||
.horizontal-list {
|
||||
display: flex;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.horizontal-list.bottom {
|
||||
display: table;
|
||||
display: table;
|
||||
}
|
||||
|
||||
.flux .item {
|
||||
flex-shrink: 0;
|
||||
line-height: normal;
|
||||
padding: .3em 0;
|
||||
flex-shrink: 0;
|
||||
line-height: normal;
|
||||
padding: .3em 0;
|
||||
}
|
||||
|
||||
.flux .item > a {
|
||||
white-space: normal;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.flux:not(.current):hover .item.title {
|
||||
position: relative;
|
||||
max-width: inherit;
|
||||
position: relative;
|
||||
max-width: inherit;
|
||||
}
|
||||
|
||||
.flux_header .title {
|
||||
flex: auto;
|
||||
}
|
||||
flex: auto;
|
||||
}
|
||||
|
|
|
|||
26
xExtension-TitleWrap/static/title_wrap.rtl.css
Normal file
26
xExtension-TitleWrap/static/title_wrap.rtl.css
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
.horizontal-list {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.horizontal-list.bottom {
|
||||
display: table;
|
||||
}
|
||||
|
||||
.flux .item {
|
||||
flex-shrink: 0;
|
||||
line-height: normal;
|
||||
padding: .3em 0;
|
||||
}
|
||||
|
||||
.flux .item > a {
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.flux:not(.current):hover .item.title {
|
||||
position: relative;
|
||||
max-width: inherit;
|
||||
}
|
||||
|
||||
.flux_header .title {
|
||||
flex: auto;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue