A mixin for writing @font-face rules in SASS.
Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.
@include font-face(Samplino, fonts/Samplino);| drush eval "var_dump(Drupal\Component\Utility\Crypt::randomBytesBase64(55))" |
| <?php | |
| // ... | |
| use Symfony\Component\HttpFoundation\Response; | |
| // Then later on (inside your controller's class), you have a function used | |
| // for the route_name (on a hook_menu() item in your .module file), this | |
| // function can return a JSON response... |
| // Here we define the lower and upper bounds for each media size | |
| $small-range: (0em, 40em); /* 0, 640px */ | |
| $medium-range: (40.063em, 64em); /* 641px, 1024px */ | |
| $large-range: (64.063em, 90em); /* 1025px, 1440px */ | |
| $xlarge-range: (90.063em, 120em); /* 1441px, 1920px */ | |
| $xxlarge-range: (120.063em); /* 1921px */ | |
| // We use these functions to get the ranges for the media queries variables. | |
| @function lower-bound($range){ | |
| @if length($range) <= 0 { |
| server { | |
| root /var/www/example.com/static; | |
| server_name example.com; | |
| access_log /var/log/nginx/example.com.access.log; | |
| error_log /var/log/nginx/example.com.error.log; | |
| try_files /maintenance.html @proxy; | |
| location @proxy { | |
| proxy_pass http://127.0.0.1:10001; |