Skip to content

Instantly share code, notes, and snippets.

.select2-selection__choice:first-child .select2-selection__choice__remove,
.select2-search--hide,
.select2-search {
display: none;
}
.select2-hidden-accessible {
border: 0 !important;
clip: rect(0 0 0 0) !important;
height: 1px !important;
@markcarrrr
markcarrrr / flexbox.css
Last active April 18, 2018 18:25
Fix for issue in Safari when wanting to use 'position: absolute;' with flexbox
/**
* Flexbox styles so Safari respects position: relative; on the flex item.
*/
.flex-box {
display: flex;
}
.flex-item {
display: flex; /* Fixes Safari issue with position: relative; */
somePromise().then(function () {
return anotherPromise();
}).then(function () {
return yetAnotherPromise();
}).catch(console.log.bind(console));
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Page</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">
</head>

Keybase proof

I hereby claim:

  • I am markcarrrr on github.
  • I am markcarrrr (https://keybase.io/markcarrrr) on keybase.
  • I have a public key ASC0b7dJiumX0-yD8chEe5v1Wlve16jlhsAsIvkwqhTUjAo

To claim this, I am signing this object: