Skip to content

Instantly share code, notes, and snippets.

View yordanzhelevdev's full-sized avatar
🤚
Hi

Yordan Zhelev yordanzhelevdev

🤚
Hi
  • Bulgaria
View GitHub Profile
@yordanzhelevdev
yordanzhelevdev / fonts.scss
Last active June 23, 2021 11:49 — forked from ghosh/fonts
Easy font face declarations using Sass lists, mixins and loops!
/**
* The path to the fonts folder, relative to the
* compiled stylesheet
*
* @type String
*/
$font-path: "../fonts/" !default;
/**
@yordanzhelevdev
yordanzhelevdev / fns-data.php
Created January 31, 2020 12:39
fns-data-backup
function gallery_data($id, $section_id = 12, $limit = 100, $type = 1) {
$order = 'res_order, res_id';
if ($section_id == $GLOBALS['s_products']) {
if ($GLOBALS['row']['prod_parent']) $order = 'res_order > 0 DESC, res_order';
else if (strpos($id, ',') !== false && $GLOBALS['row']['prod_id']) $order = "page_id != {$GLOBALS['row']['prod_id']} DESC, ".$order;
}
$res = query("SELECT *
FROM wf_resources
WHERE page_id IN ($id) AND section_id = $section_id AND res_type = $type
ORDER BY res_type, $order LIMIT $limit");
// Sizes filteration
.filter-sizes {
ul {
& { display: flex; flex-wrap: wrap; }
& > * { flex-shrink: 0; flex-grow: 0; flex-basis: 31%; margin: 0 3.5% 0 0; padding-bottom: 3.5%; overflow: hidden; }
& > :nth-child(3n) { margin-right: 0; }
}
input {
& { opacity: 0; visibility: hidden; }
&:checked + a, &:checked + span {
<div class="">
<div class="heading-block heading-block--light">
<h2 class="heading-block__head">Професионализъм и партньорство</h2>
</div>
<div class="flex-list flex-list--check">
<a class="flex-list__item" href="#">Устав</a>
<a class="flex-list__item" href="#">Ръководство</a>
<a class="flex-list__item" href="#">Фирми</a>
<a class="flex-list__item" href="#">Издания</a>
<div class="pw page">
<div class="page__grid">
<div class="page__col page__col--1">
<article class="article">
<div class="article__content">
<div class="acc">
<div class="article__gallery js-articleGalleryWrapper">
<div class="owl-carousel js-articleGallery">
<div class="owl-lazy article__slide" data-src="https://picsum.photos/600/400"></div>
<div class="owl-lazy article__slide" data-src="https://picsum.photos/600/400"></div>
@yordanzhelevdev
yordanzhelevdev / items.css
Created April 16, 2019 07:01
Unknown number items spacing distribution with flexbox
.items {
display: flex;
flex-wrap: wrap;
width: 1000px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
margin: -3% 0 0 -3%;
}
@mixin flexbox {
display: -webkit-box;
display: -moz-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
}
@mixin inline-flex {
display: -webkit-inline-box;
@mixin valid-quantity($quantity) {
@if type-of($quantity) != 'number' {
@error 'The "quantity" parameter must be a number!';
}
@if not(unitless($quantity)) {
@error 'The "quantity" parameter must not have a unit!';
}
@if $quantity < 0 {
@error 'The "quantity" parameter must be at least 0!';
}
@yordanzhelevdev
yordanzhelevdev / README-Template.md
Created October 1, 2018 06:56 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

12006 silly finalize C:\Users\User\Desktop\IonicPlaygroud\node_modules\fsevents\node_modules\delegates
12007 silly finalize C:\Users\User\Desktop\IonicPlaygroud\node_modules\fsevents\node_modules\detect-libc
12008 silly finalize C:\Users\User\Desktop\IonicPlaygroud\node_modules\fsevents\node_modules\fs.realpath
12009 silly finalize C:\Users\User\Desktop\IonicPlaygroud\node_modules\fsevents\node_modules\has-unicode
12010 silly finalize C:\Users\User\Desktop\IonicPlaygroud\node_modules\fsevents\node_modules\inherits
12011 silly finalize C:\Users\User\Desktop\IonicPlaygroud\node_modules\fsevents\node_modules\ini
12012 silly finalize C:\Users\User\Desktop\IonicPlaygroud\node_modules\fsevents\node_modules\isarray
12013 silly finalize C:\Users\User\Desktop\IonicPlaygroud\node_modules\fsevents\node_modules\minimatch
12014 silly finalize C:\Users\User\Desktop\IonicPlaygroud\node_modules\fsevents\node_modules\ignore-walk
12015 silly finalize C:\Users\User\Desktop\IonicPlaygroud\node_modules\fsevents\node_modules\minim