Skip to content

Instantly share code, notes, and snippets.

@FatihaTech
Last active June 14, 2025 05:46
Show Gist options
  • Save FatihaTech/5a61307f67db1bc869042ee79a932830 to your computer and use it in GitHub Desktop.
Save FatihaTech/5a61307f67db1bc869042ee79a932830 to your computer and use it in GitHub Desktop.
:root {
--bg-color: #405580;
--primary: #0076c6;
--primary-color: #0d0b52;
--secondary-color: #3458b9;
--font-color: #424242;
--bg-color: #ffffff;
--heading-color: #292922;
--white-color: #ffffff;
--secondary: #333333;
--error: #ce0606;
--success: #009070;
--white: #ffffff;
--blue: #1e90ff;
--white: #ffffff;
--section-color: #ffdab0;
--menubar-color: #ffffff;
--primary-color: blue;
--main-bg-color: brown;
--fontsize: 12px;
}
//Text Outline
.title--stroke {
-webkit-text-stroke: 2px #6dd2f5;
color: transparent;
}
body { background-color: var(--blue); }
font-size: clamp(12px, 2vw, 24px); //dynamic font size
https://www.browserstack.com/
https://responsively.app/
https://www.lambdatest.com/
flex: 1; margin: 10px;width: -webkit-fill-available;
height: calc(100vh - 157px);
margin-left: calc(-50vw + 135px);
width: calc(100vw - 272px) !important;
@media (prefers-color-scheme: dark) {
:root {
--primary-color: #325b97;
--secondary-color: #9cafeb;
--font-color: #e1e1ff;
--bg-color: #000013;
--heading-color: #818cab;
}
}
input[type="checkbox"] {
width: 80px;
height: 80px;
--hue: calc(var(--i) * 50 + 100);
accent-color: hsl(var(--hue), 50%, 50%);
}
width: 100vw;
height: 100vh;
top: calc(50% - 24px);
transform: rotate(0deg);
transform: translate(-50%, -50%);
**** https://nerdcave.com/tailwind-cheat-sheet
=== Line-Clamp ====
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
height: 50px;
== One-Line Ellipsis ===
display: block;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
.category-page-wrapper > [class*=col-] {}
[class*="owl-"] {}
[class*="owl-"]:hover {}
[class*=col-md]:nth-child(1) {}
.contact-infos + .single-contact-infos { margin-left: 65px; }
input::-webkit-input-placeholder {}
form input::-moz-placeholder {}
form input:-ms-input-placeholder {}
form input:-moz-placeholder {}
.single-sidebar:not(.search-widget):not(.tags-widget) {}
.single-sidebar + .single-sidebar { margin-top: 45px; }
text-align-last: center;
-webkit-transition: all .4s ease;
transition: all .4s ease;
transform: skewX(-15deg);
transform: translateY(-50%);
transform: rotateX(180deg);
box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
transform: scale(1);
transform: translateY(-20px) perspective(600px) rotateX(10deg);
transform: translate3d(0, 0, 0);
min-height: calc(100vh - 70px);
height: calc(100% - 100px);
background: -webkit-gradient(linear, left top, right top, from(#f80503), to(#ff7d09));
background: linear-gradient(to right, #f80503 0%, #ff7d09 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
text-transform: uppercase;
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
background: #181818 url(../img/side-menu-bg.jpg) center center no-repeat scroll;
background-size: 100% 100%; / cover/contain
border-radius: 0 20px;
clip: rect(1px,1px,1px,1px);
background-blend-mode: multiply;
@media only screen and (max-width: 479px) {}
// Small devices (landscape phones, 576px and up)
@media (min-width: 576px) { ... }
// Medium devices (tablets, 768px and up)
@media (min-width: 768px) { ... }
// Large devices (desktops, 992px and up)
@media (min-width: 992px) { ... }
// X-Large devices (large desktops, 1200px and up)
@media (min-width: 1200px) { ... }
// XX-Large devices (larger desktops, 1400px and up)
@media (min-width: 1400px) { ... }
@media only screen and (max-width: 479px) {}
@media (min-width: 576px) {}
@media (min-width: 768px) {}
@media (min-width: 992px) {}
@media (min-width: 1200px) {}
@media (min-width: 1400px) {}
@media only screen and (min-width: 768px) {
.side-bar-menu-visible {
transform: translateX(0) !important;
transition: transform .5s ease-out;
}
}
@media only screen and (min-width: 768px) {
.side-bar-menu {
transform: translateX(150%);
transition: transform .5s ease-out;
}
}
.thumbnails{overflow-y: scroll; max-height: 527px;}
.custom-scroll{ overflow-x: hidden; direction: rtl; }
.custom-scroll::-webkit-scrollbar { width: .5em;}
.custom-scroll::-webkit-scrollbar-track { -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); background-color: rgba(255, 255, 255, 0.3); border-radius: 10px; }
.custom-scroll::-webkit-scrollbar-thumb { background-color: #274448; border-radius: 10px; }
.custom-scroll::-webkit-scrollbar-thumb:hover { background-color: #0f1c1e; }
@import url(https://fonts.googleapis.com/css?family=Poppins:300,300i,400,400i,500,500i,600,600i,700,700i,800,800i|Rubik:300,300i,400,400i,500,500i,700,700i|Playfair+Display:700i);
@import url(css/responsive-layout.css);
body.active-preloader-ovh { overflow: hidden; }
.preloader { background-color: #FE5A0E; width: 100%; height: 100%; left: 0; position: fixed; top: 0; z-index: 9999999; }
.preloader .spinner { width: 60px; height: 60px; position: absolute; top: 50%; left: 50%; margin-top: -30px; margin-left: -30px; background-color: #fff; border-radius: 100%; -webkit-animation: sk-scaleout 1.0s infinite ease-in-out; animation: sk-scaleout 1.0s infinite ease-in-out; }
@-webkit-keyframes sk-scaleout {
0% { -webkit-transform: scale(0); }
100% { -webkit-transform: scale(1); opacity: 0; }
}
@keyframes sk-scaleout {
0% { -webkit-transform: scale(0); transform: scale(0); }
100% { -webkit-transform: scale(1); transform: scale(1); opacity: 0; }
}
.carousel-caption { position: absolute; top: 0; right: 0; left: 0; bottom: 0; padding: 0; text-align: right; text-shadow: none; }
.carousel-caption .container { display: table; width: 100%; height: 100%; max-width: 1170px; margin-left: auto; margin-right: auto; text-align: center; }
@media (max-width: 1200px) {}
@media (max-width: 1024px) {}
@media (max-width: 991px) {}
@media (max-width: 768px) {}
@media (max-width: 731px) {}
@media (max-height: 700px) {}
@media (max-width: 667px) {}
@media (max-width: 568px) {}
@media (max-width: 480px) {}
@media (max-width: 414px) {}
@media (max-width: 375px) {}
/*ie fix*/
@media screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none) {}
/* Featured Phone 240px to 320 px (portrait and landscape) ----------- */
@media only screen and (max-width: 319px){}
/* Smartphone view: 1 tile */
@media only screen and (min-width : 320px) and (max-width: 479px) {}
/* Tablet view: 2 tiles */
@media only screen and (min-width : 480px) and (max-width: 767px) {}
/* Small desktop / ipad view: 3 tiles */
@media only screen and (min-width : 768px) and (max-width: 1024px) {}
/* Desktops and laptops ----------- */
@media only screen and (min-width : 1025px) and (max-width: 1224px) {}
/* Large screens : current Monitor */
@media only screen and (min-width : 1225px) and (max-width: 1824px) {}
/* iPhone 4 ----------- */
@media only screen and (-webkit-min-device-pixel-ratio:1.5), only screen and (min-resolution:1825dpi) {}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
height: auto;
}
input[type="search"] {
-webkit-appearance: textfield;
box-sizing: content-box;
}
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
/**{font-family: 'SolaimanLipiNormal', Arial, Vrinda, FallbackBengaliFont, Helvetica, sans-serif !important;}*/
#googleLoader {
width: 96px; height: 96px;
position: fixed; left: 50%; top: 50%;
-webkit-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
background-color: rgba(255, 255, 255, 0.9);
-webkit-box-shadow: 0px 24px 64px rgba(0, 0, 0, 0.24);
box-shadow: 0px 24px 64px rgba(0, 0, 0, 0.24);
border-radius: 16px;
opacity: 0;
visibility: hidden;
-webkit-transition: opacity .2s ease-out, visibility 0s linear .2s;
-o-transition: opacity .2s ease-out, visibility 0s linear .2s;
transition: opacity .2s ease-out, visibility 0s linear .2s;
z-index: 2000;
}
#googleLoader.fullscreen {
padding: 0; left: 0; top: 0;
width: 100%;
height: 100%;
-webkit-transform: none;
-ms-transform: none;
transform: none;
background-color: #fff;
border-radius: 0;
-webkit-box-shadow: none;
box-shadow: none;
}
#googleLoader.show {
-webkit-transition: opacity .4s ease-out, visibility 0s linear 0s;
-o-transition: opacity .4s ease-out, visibility 0s linear 0s;
transition: opacity .4s ease-out, visibility 0s linear 0s;
visibility: visible;
opacity: 1;
}
#googleLoader .circular {
-webkit-animation: loader-rotate 2s linear infinite;
animation: loader-rotate 2s linear infinite;
position: absolute;
left: calc(50% - 24px);
top: calc(50% - 24px);
display: block;
-webkit-transform: rotate(0deg);
-ms-transform: rotate(0deg);
transform: rotate(0deg);
}
#googleLoader .path {
stroke-dasharray: 1, 200;
stroke-dashoffset: 0;
-webkit-animation: loader-dash 1.5s ease-in-out infinite;
animation: loader-dash 1.5s ease-in-out infinite;
stroke-linecap: round;
}
@-webkit-keyframes loader-rotate {
100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}
@keyframes loader-rotate {
100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}
@-webkit-keyframes loader-dash {
0% { stroke-dasharray: 1, 200; stroke-dashoffset: 0; }
50% { stroke-dasharray: 89, 200; stroke-dashoffset: -35px; }
100% { stroke-dasharray: 89, 200; stroke-dashoffset: -136px; }
}
@keyframes loader-dash {
0% { stroke-dasharray: 1, 200; stroke-dashoffset: 0; }
50% { stroke-dasharray: 89, 200; stroke-dashoffset: -35px; }
100% { stroke-dasharray: 89, 200; stroke-dashoffset: -136px; }
}
<div id="googleLoader" class="show fullscreen">
<svg class="circular" width="60px" height="60px">
<circle class="path-bg" cx="30" cy="30" r="28" fill="none" stroke-width="4" stroke="#eeeeee"></circle>
<circle class="path" cx="30" cy="30" r="28" fill="none" stroke-width="4" stroke-miterlimit="10" stroke="#ff5e15"></circle>
</svg>
</div>
@top-left {
content: "Page " counter(page);
}
@top-left-corner {
content: "Page " counter(page);
}
@top-center {
content: "Page " counter(page);
}
@top-right-corner {
content: "Page " counter(page);
}
@top-right {
content: "Page " counter(page);
}
@right-top {
content: "Page " counter(page);
}
@right-middle {
content: "Page " counter(page);
}
@right-bottom {
content: "Page " counter(page);
}
}
@page vertical {
size: A4 portrait;
}
@page horizontal {
size: A4 landscape;
}
section {
page: vertical;
}
table {
page: horizontal;
}
@page :left {
margin-left: 3cm;
margin-right: 4cm;
}
@page :right {
margin-left: 4cm;
margin-right: 3cm;
}
@page :first {
margin-top: 8cm;
}
@page :blank {
@top-center {
content: "This page is intentionally left blank";
}
}
@page {
@top-left { ... /* document name */ }
@bottom-center { ... /* page number */}
}
@page :left {
@left-middle { … /* page number in left margin */ }
}
@page :right{
@right-middle { … /* page number in right margins of right pages */}
}
@page :left {
@bottom-left-corner { … /* left page numbers */ }
}
@page :right {
@bottom-right-corner { … /* right page numbers */ }
}
@page :first {
@bottom-left-corner { … /* empty footer on 1st page / }
@bottom-right-corner { … / empty footer */ }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment