Skip to content

Instantly share code, notes, and snippets.

View frankyonnetti's full-sized avatar

Frank Yonnetti frankyonnetti

View GitHub Profile
@frankyonnetti
frankyonnetti / drupal7-ajax-throbber.css
Last active February 17, 2021 00:47
Drupal 7 - ajax throbber #drupal #d7 #throbber
/*
* .ajax-progress.ajax-progress-throbber
* .ajax-progress.ajax-progress-throbber .message
* .ajax-progress.ajax-progress-throbber .throbber
*/
/*
* these apply to auto-completing form fields
*/
@frankyonnetti
frankyonnetti / drupal7-admin-edit-link.php
Last active May 23, 2021 16:53
Drupal 7 - admin edit link #drupal #admin #d7
@frankyonnetti
frankyonnetti / css-word-break.css
Last active May 23, 2021 16:35
CSS - word-break #css #break #ellipsis
/*
* http://css-tricks.com/snippets/css/prevent-long-urls-from-breaking-out-of-container
*/
/* Preferred option */
@mixin ellipsis() {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
@frankyonnetti
frankyonnetti / css-font-weight.md
Last active May 22, 2021 22:40
CSS - font-weight #css #font #weight

MDN font-weight

  • Value Common weight name
  • 100 Thin (Hairline)
  • 200 Extra Light (Ultra Light)
  • 300 Light
  • 400 Normal
  • 500 Medium
  • 600 Semi Bold (Demi Bold)
  • 700 Bold
@frankyonnetti
frankyonnetti / css-border-box-shadow.css
Last active February 17, 2021 00:50
CSS - border box-shadow #css
/*
* Horizontal Length, Vertical Length, Blur Radius, Spread Radius
*
* Generator
* http://www.cssmatic.com/box-shadow
*/
/* borders with inset box-shadow */
box-shadow: inset 0 1px 0 0 rgba(0, 0, 0, 0.5); /* top border */
@frankyonnetti
frankyonnetti / css-attrubute-hooks.css
Last active February 17, 2021 00:53
CSS - attrubute hooks #css #attrubutes
/* https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors */
/* Internal links, beginning with "#" */
a[href^="#"] {
background-color: gold;
}
/* Links with "example" anywhere in the URL */
a[href*="example"] {
background-color: silver;
@frankyonnetti
frankyonnetti / css-emove-hover-touch-screen-devices.css
Last active February 17, 2021 00:54
CSS - remove :hover on touch screen devices #webkit #touch
/*
* http://www.javascriptkit.com/dhtmltutors/sticky-hover-issue-solutions.shtml
* Method 3- Using CSS Media Queries Level 4 Interaction Media Features
*/
@media (hover:none),
(hover:on-demand) {
nav a:hover {
/* suppress hover effect on devices that don't support hover fully */
background: none;
@frankyonnetti
frankyonnetti / Composer.sh
Last active May 22, 2021 22:32
Composer #composer #php
https://getcomposer.org/download/
# install Composer from home directory
$ cd ~
$ curl -sS https://getcomposer.org/installer | php
$ mv composer.phar /usr/local/bin/composer
# Update
$ composer global self-update
$ composer global update
@frankyonnetti
frankyonnetti / bootstrap3-media-querie.scss
Last active February 17, 2021 00:56
Bootstrap - 3.x media queries #bootstrap
/* Media queries breakpoints */
/* Less */
@screen-xs: 480px;
@screen-xs-min: @screen-xs;
@screen-sm: 768px;
@screen-sm-min: @screen-sm;
@frankyonnetti
frankyonnetti / bash-symlink.sh
Last active February 17, 2021 00:57
Bash - symlink #symlink