Skip to content

Instantly share code, notes, and snippets.

View tschortsch's full-sized avatar
🚀

Jürg Hunziker tschortsch

🚀
View GitHub Profile
@tschortsch
tschortsch / eager-relations-bug-plugin.ts
Created March 6, 2024 20:33
Vendure eager relation bug reproduction plugin (Issue: 2687)
import {
ActiveOrderService,
Ctx,
CustomFieldRelationService,
LanguageCode,
Order,
OrderService,
PluginCommonModule,
RequestContext,
Transaction,
@tschortsch
tschortsch / btn-embed-bs4.scss
Created January 22, 2018 15:04
Embed button for Bootstrap 4
/**
* Embed button for Bootstrap 4
*
* Description: Embed a button inside a Bootstrap 4 input field.
*
* Example (search field with embedded magnifying glass):
* <div class="has-btn-embed has-btn-embed-right">
* <input type="search" class="form-control" id="s" name="s" />
* <button type="submit" class="btn btn-embed" aria-label="Search"><i class="fa fa-search" aria-hidden="true"></i></button>
* </div>
@tschortsch
tschortsch / btn-embed-bs3.scss
Created January 22, 2018 14:27
Embed button for Bootstrap 3
/**
* Embed button for Bootstrap 3
*
* Description: Embed a button inside a Bootstrap 3 input field.
*
* Example (search field with embedded magnifying glass):
* <div class="has-btn-embed has-btn-embed-right">
* <input type="search" class="form-control" id="s" name="s" />
* <button type="submit" class="btn btn-embed" aria-label="Search"><i class="fa fa-search" aria-hidden="true"></i></button>
* </div>
@tschortsch
tschortsch / bootstrap_grid_clearfix.css
Last active January 5, 2018 12:46
Bootstrap 3 Clearfix for boxes of same width but different height
/* Bootstrap Clearfix for boxes of same width but different height */
/* Source: http://www.bluthemes.com/blog/3/clearing-bootstrap-3-columns */
/* Tablet */
@media (min-width:767px) {
/* Column clear fix */
.col-lg-1:nth-child(12n+1),
.col-lg-2:nth-child(6n+1),
.col-lg-3:nth-child(4n+1),
.col-lg-4:nth-child(3n+1),