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

[4.0] Display of horizontal mod_articles_news module #30527

Merged
merged 36 commits into from
Sep 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
020a67b
Merge remote-tracking branch 'joomla-origin/4.0-dev' into 4.0-dev
drmenzelit Aug 10, 2020
e8b340a
Merge remote-tracking branch 'joomla-origin/4.0-dev' into 4.0-dev
drmenzelit Aug 21, 2020
1b9b0b7
First step to make newsflash horizontal
drmenzelit Aug 31, 2020
7b5a037
Merge branch '4.0-dev' of https://github.com/joomla/joomla-cms into 4…
drmenzelit Aug 31, 2020
a62b9ec
[4.0] Fix Alert double error display in Installation
infograf768 Aug 17, 2020
3c12057
seperating multiple messages with border top
infograf768 Aug 18, 2020
da3e1e3
Increase minimum length
Aug 19, 2020
1f9bd25
Fix meter displaying complete message prematurely
Aug 19, 2020
82247a1
Add strenthmeter attribute to installation
Aug 19, 2020
494e4db
Change meter values to display green when password requirements are met
Aug 20, 2020
64b99dd
[4.0] {Cassiopea] Implementing Password length/meter
infograf768 Aug 21, 2020
2fafa42
[4.0] Fix Fieldset description display (#30435)
infograf768 Aug 21, 2020
c5e2472
[4.0] Url Language Code is not a prefix (#30440)
infograf768 Aug 21, 2020
9993a0b
[4.0] Implementing display of fieldset descriptions for fieldset
infograf768 Aug 22, 2020
9329d03
Taking off description
infograf768 Aug 22, 2020
d607b2b
scss cs
infograf768 Aug 23, 2020
2af296f
use @Quy suggestion
infograf768 Aug 23, 2020
8ef7498
file cs
infograf768 Aug 24, 2020
c7ab43e
[4.0] Media field fix (#30455)
dgrammatiko Aug 25, 2020
6f46ba4
[4.0] Convert icon used for jgrid defaults to fas fa- (#30464)
N6REJ Aug 25, 2020
2afae5d
move fa-fw to last class to fit convention (#30469)
N6REJ Aug 25, 2020
4e7b903
[4.0] Long labels wrapping (#30474)
brianteeman Aug 25, 2020
9b1d941
Fix mod_articles_latest (#30459)
chmst Aug 25, 2020
0551e55
[4.0] Add a parameter for "back-to-top" button in Cassiopeia (#30441)
drmenzelit Aug 26, 2020
6524e71
fix improper family name. (#30481)
N6REJ Aug 26, 2020
708f937
[4.0] update helptoc (#30490)
brianteeman Aug 27, 2020
b4599d0
[4.0] Add new permissions-policy to the HTTPHeaders Plugin (#30491)
zero-24 Aug 27, 2020
aa70b24
[4.0] Error when changing status of tagged content items (#30466)
SharkyKZ Aug 28, 2020
8418b54
[4.0] br tag (#30503)
brianteeman Aug 28, 2020
daaaae4
[4.0] Remove old search component (#30506)
brianteeman Aug 28, 2020
f389d38
[4.0] Help Dashboard (#30508)
brianteeman Aug 30, 2020
f46af6f
Merge remote-tracking branch 'origin/4.0-dev' into 4.0-dev
drmenzelit Aug 31, 2020
cddad60
Merge branch '4.0-dev-newsflash-horiz' of https://github.com/drmenzel…
drmenzelit Aug 31, 2020
c6e3411
Merge branch '4.0-dev' into 4.0-dev-newsflash-horiz
drmenzelit Sep 2, 2020
3495670
Moved css for mod_articles_news to media folder
drmenzelit Sep 2, 2020
bcc033d
Move web asset call to horizontal.php
drmenzelit Sep 4, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions build/media_source/mod_articles_news/css/template.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
.mod-articlesnews-horizontal {
display: flex;
flex-wrap: wrap;
padding: 0;
list-style: none;
}
.mod-articlesnews-horizontal figure img {
width: 100%;
}
.mod-articlesnews-horizontal li {
display: flex;
flex: 1 1 300px;
flex-direction: column;
}
.mod-articlesnews-horizontal li:not(:last-child) {
margin-right: 2rem;
}
.mod-articlesnews-horizontal .readmore {
margin-top: auto;
}

@supports (display: grid) {
.mod-articlesnews-horizontal {
display: grid;
grid-gap: 2rem;
grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
}
.mod-articlesnews-horizontal li:not(:last-child) {
margin-right: 0;
}
}
4 changes: 4 additions & 0 deletions modules/mod_articles_news/tmpl/horizontal.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@

use Joomla\CMS\Helper\ModuleHelper;

/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $app->getDocument()->getWebAssetManager();
$wa->registerAndUseStyle('mod_modules', 'mod_articles_news/template.css');

if (!$list)
{
return;
Expand Down