Frontend

Alle Artikel aus der Kategorie Frontend.

Frontend

How to detect multiline text with jQuery

Currently there is no way to do this job just with css. I saw various Javascript solutions to do this, most of them are way to complicated (for my use case).

In my case i just need it to detect multiline field labels. So ... as i have a fix font size here, i just look out for t...

Frontend

How to use Icon Fonts

Da ich das Thema Icon Fonts bis heute beharrlich ignoriert habe, es aber doch immer attraktiver wird, habe ich mich nun doch mal dazu durchgerungen die Geschichte in einem kommenden Projekt zu testen. Die Vorteile liegen auf der Hand: die Icons sind frei skalierbar, was insbesond...

Frontend

Silbentrennung per JavaScript

Für ein aktuelles Projekt bestand die Notwendigkeit Absätze als Blocksatz zu formatieren. Das Problem hierbei ist hinreichend bekannt, besonders bei schmalen Spalten kann man sich dem Thema Silbentrennung nicht erwehren. Um also ansprechenden Blocksatz erzeugen zu können, müssen...

Drupal

Platzsparendes Captcha (in kleinst-Formularen)

Bei einem Drupal Kunden bestand vor kurzem die Notwendigkeit ein kleines Kontaktformular im Footer mit einem Captcha zu versehen. Captchas sind naturgemäß nun meist eher unschön anzusehen und nehmen relativ viel Platz in Anspruch. Die Idee war nun das Captcha bei Klick auf den Su...

Frontend

Keyframe animation is not starting in Safari

Lately i was running into an Safari issue - what happens really often lately, i really start to fall in love with this "amazing" piece of software. Whatever - the thing is, you may come to the idea to define all of your animation properties and set it to animation-play-state:paus...

Frontend

Google Anfahrtsrechner flexibel (responsive) darstellen

Leider sind viele Google Widgets aktuell nicht auf der der Höhe der Zeit, so auch der Anfahrtsrechner. Dieser lässt sich allerdings leicht anpassen:

table.gadget, table.gadget iframe{ width:100% !important; } 
table.gadget #fields table,table.gadget #fields #from, table.gadget...
Frontend

Good ol' Font Awesome: Fork Awesome

I’m not a big fan of Font Awesome 5, i’m sure it has an amazing feature set and stuff, but I’m completely fine with simple, working iconfonts.

However, I just wanted to drop a link to project „Fork Aswesome“, a fork of Font Awesome 3 who keeps it updated. Fantastic!

Frontend

Smart Sticky Sidebar via hcSticky

If you ever need to have a sticky sidebar, which has a variable height, which is working well with a footer region, without having a second scrollbar ... try https://github.com/somewebmedia/hc-sticky

Trying to build this with waypoint.js or something, is pain in the ass. This g...

Frontend

iOS Radiobuttons & Checkox Label behavoir

For some reason, a click on the label of radio- & checkbox form elements does not work (to check the related form item). After some research we figured out, that we have to set the css attribute cursor:pointer to fix this issue.

Another amazing "feature" made by Apple, big th...

Frontend

Kleines 1140px Grid Helper Script

Nachdem ich vergeblich nach einer vernünftigen Lösung für das 1140px Grid gesucht habe, bin ich einfach selber tätig geworden. Ganz simples Script, das nur genau diesen einen Zweck erfüllt: Ein Hilfsgrid zur Ausrichtung über die Seite legen (wobei es hier - erst mal - einzig um d...

Frontend

Swiper.js shows 1px of the upcoming / next slide

There is a GitHub issue for this problem, but there is no working solution and the issue is locked.
The issue does mention setting Swipers' roundLengths to true, but this didn't work for me.

My workaround (for a single slide slideshow):

.swiper-slide-next {
   translate: 1px...
Frontend

CSS (fake) placeholder text for select elements

For now, there is no placeholder attribute available for HTML select elements what is really bad if you need to achive some kinda reduced form styling, without field labels and stuff.

HTML Select element with fake placeholderExample form with placeholder style select label

But there is a workaround, we have to ad...

Frontend

CSS Object-Fit ♥♥♥

I first heard of the object-fit attribute a couple of month ago and i make extensive use of it since this 'magic moment'. It's just so freaking helpfull for RWD that i won't miss it anymore.

The worse thing about it, like most new techniques, some major browsers do not support...

Frontend

JTL Shop (5): OnPage Composer (OPC)

Because i had some pain when starting development with JTL Shops new OPC, I start to collect some stuff and things here to help others.

Add new OPC-Mount Point / Region to the Template

This is pretty simple, but i think it's currently undocumented, just add this:

{opcMountP...
Frontend

Webfont rendered a lot to thick in Google Chrome

Webfonts currently will be rendered differently in Chrome and Firefox, so especially under Windows Chrome has a really bad font anti aliasing. But sometimes thats not the point. First make sure you have set the font-weight correctly. If this does not help, you might have the font...