Feel free to use the Frio Theme Template.
They are based on the style templates from @Kristi H.
Since the original is still WIP in various places, I have completed them further in this version.
reshared this
Feel free to use the Frio Theme Template.
They are based on the style templates from @Kristi H.
Since the original is still WIP in various places, I have completed them further in this version.
reshared this
tness16
in reply to Matthias • • •Matthias
in reply to tness16 • • •Tuxi ⁂
in reply to tness16 • • •See anonsys.net/display/bf69967c-1…
Kristi H.
Unknown parent • • •Problems are you can't know aspect ratio of embedded video because it exists inside the iframe. You only have control of size/aspect of iframe "window" through which it shows. If what's inside is coded to be responsive it will adjust itself to fit the iframe, you have no control over that. You can't "reach inside" a cross-origin iframe to style anything with CSS, not even with JS.
Also, the iframe seems to have no classname saying it is "video" or "youtube" or "custom-iframe" so it looks like only iframe HTML tag can be targeted with CSS, but will apply style to ALL iframes regardless of what content is inside of them.
You can at least center the "window" as a block and you don't need to use specific pixel sizes for its aspect ratio:
... Show more...Problems are you can't know aspect ratio of embedded video because it exists inside the iframe. You only have control of size/aspect of iframe "window" through which it shows. If what's inside is coded to be responsive it will adjust itself to fit the iframe, you have no control over that. You can't "reach inside" a cross-origin iframe to style anything with CSS, not even with JS.
Also, the iframe seems to have no classname saying it is "video" or "youtube" or "custom-iframe" so it looks like only iframe HTML tag can be targeted with CSS, but will apply style to ALL iframes regardless of what content is inside of them.
You can at least center the "window" as a block and you don't need to use specific pixel sizes for its aspect ratio:
If the content embedded in the iframe is responsive and a different aspect radio it will add pillarbox/letterbox or be cropped or scaled, depending on how the owner of the content site coded it. If it's not responsive it might simply not fit inside the "window" you gave it, in which case the iframe will have scrollbars. An iframe is a "hole" in your web page to another web page, there's nothing you can do with it when it's from another origin.
Matthias
in reply to Kristi H. • • •wow
Hiker
in reply to Matthias • • •Anomaly
in reply to Matthias • •@Matthias @Kristi H.
it doesn't work for me , I copied the 2 files of the dark version in the folder
/friendica/view/theme/frio/scheme/, to be sure of the permissionssudo chown -R www-data:www-data /var/www/friendicaI apply the customisation
I don't understand where the mistake could be
cheers 😔
Friendica Admins reshared this.
Matthias
in reply to Anomaly • • •@Anomaly
Have you saved the PHP and CSS file under Schema?
@Kristi H.
Anomaly
in reply to Matthias • •@Matthias @Kristi H.
Yes ,
I downloaded the two files with wget
sudo wgetgithub.com/loma-one/friendica_…sudo wgetgithub.com/loma-one/friendica_…and
sudo chown -R www-data:www-data /var/www/friendicaFriendica Admins reshared this.
Matthias
in reply to Anomaly • • •Is this only the case with the dark Frio template or also with the light-coloured one?
Anomaly
in reply to Matthias • •only with loma template dark and light. with the original templates dark,light etc , I have no problems. advice?
Friendica Admins reshared this.
Anomaly
in reply to Matthias • •I see in the log
Friendica Admins reshared this.
Anomaly
in reply to Matthias • •it was my mistake, i was not downloading the RAW from github. Thank you, I like it very much
Friendica Admins reshared this.
Matthias
in reply to Anomaly • • •Oh, that's good. Thank you very much for your feedback
Anomaly likes this.
arappathor
in reply to Matthias • • •