Skip to content

Commit

Permalink
css global add
Browse files Browse the repository at this point in the history
  • Loading branch information
dishafaujdar committed Oct 7, 2024
1 parent 7e6082c commit 2c6d7e8
Showing 1 changed file with 353 additions and 0 deletions.
353 changes: 353 additions & 0 deletions styles/globals.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,353 @@
@import url(https://cdn.jsdelivr.net/gh/tonsky/FiraCode@4/distr/fira_code.css);
@import url(https://cdn.jsdelivr.net/npm/@docsearch/css@3);

@import "swiper/css";
@import "swiper/css/a11y";
@import "swiper/css/navigation";
@import "swiper/css/pagination";
@import "swiper/css/scrollbar";

@tailwind base;
@tailwind components;
@tailwind utilities;
@tailwind variants;

html,
body {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
scroll-behavior: smooth;
}

li>p {
display: inline;
}

.atss {
/* AddThis plugin */
z-index: 10 !important;
}

abbr[title] {
text-decoration: none;
}

.countdown-text-gradient {
background: linear-gradient(
230deg,
#e74694,
#4b79cf,
#4bc5cf,
#4b79cf,
#e74694
);
background-size: 500% 100%;
background-clip: text;
-webkit-text-fill-color: transparent;
-webkit-animation: GradientAnimation 50s ease infinite alternate;
-moz-animation: GradientAnimation 50s ease infinite alternate;
animation: GradientAnimation 50s ease infinite alternate;
}

@keyframes GradientAnimation {
0% {
background-position: 0% 50%
}

100% {
background-position: 200% 50%
}
}

:target {
scroll-margin-top: 120px;
}

@media (max-width: 1280px) {
:target {
scroll-margin-top: 155px;
}
}

/* adjust swiper library */
.swiper-wrapper {
align-items: stretch;
}

.swiper-slide {
height: auto !important;
}

/* adjust DocsSearch input styles */
.DocSearch-Input {
border-width: 0;
background-color: transparent;
}

.DocSearch-Input:focus {
outline: 0;
outline-offset: 0;
box-shadow: none;
}

.DocSearch-Screen-Icon {
display: flex;
flex-flow: row;
justify-content: center;
align-items: center;
}

.DocSearch-Help > a {
appearance: none;
background: none;
border: 0;
border-radius: 1em;
color: var(--docsearch-highlight-color);
cursor: pointer;
display: inline-block;
font-size: 1em;
font-weight: 700;
padding: 0;
}

.DocSearch-Help > a:focus, .DocSearch-Help > a:hover {
outline: none;
text-decoration: underline;
}

.two-liner {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}

/* adjust DocsSearch mobile styles */
@media (max-width: 750px) {
.DocSearch-Container {
position: fixed !important;
}
}

@media (max-width: 767px){
.orbits{
display: none;
}
}
.orbit-container {
position: relative;
margin: 0 auto;
width: 100%;
height: 100%;
top: -200px;
}

.orbit {
position: absolute;
border-radius: 100%;
border: solid 3px #f3f3f4;
transition: 0.2s;
}

.orbit > div {
cursor: pointer;
}

.orbit > div > img {
border-radius: 100%;
}
.title {
line-height: 0.9;
font-size: 60px;
}
#first-orbit {
--n: 6; /* number of item */
--d: 70s; /* duration */
width: 600px;
height: 600px;
top: 165px;
left: calc(50% - 300px);
position: relative;
display: grid;
grid-template-columns: 35px;
grid-template-rows: 35px;
place-content: center;
}

#second-orbit {
--no: 7; /* number of item */
--de: 80s; /* duration */
width: 800px;
height: 800px;
top: 75px;
left: calc(50% - 400px);
display: grid;
grid-template-columns: 35px;
grid-template-rows: 35px;
place-content: center;
}

#third-orbit {
--ni: 7; /* number of item */
--ds: 80s; /* duration */
width: 1000px;
height: 1000px;
top: -10px;
left: calc(50% - 500px);
display: grid;
grid-template-columns: 35px;
grid-template-rows: 35px;
place-content: center;
}

.item,
.item-2,
.item-3 {
grid-area: 1/1;
line-height: 30px;
text-align: center;
border-radius: 50%;
}

.item {
animation: orbit-spin var(--d) linear infinite;
transform: rotate(0) translate(300px) rotate(0);
}

.item-2 {
animation: orbit-spin2 var(--de) linear infinite;
transform: rotate(-0) translate(400px) rotate(-0);
}

.item-3 {
animation: orbit-spin3 var(--ds) linear infinite;
transform: rotate(0) translate(500px) rotate(0);
}
@keyframes orbit-spin {
100% {
transform: rotate(1turn) translate(300px) rotate(-1turn);
}
}

.item:nth-child(1) {
animation-delay: calc(-0 * var(--d) / var(--n));
}
.item:nth-child(2) {
animation-delay: calc(-1 * var(--d) / var(--n));
}
.item:nth-child(3) {
animation-delay: calc(-2 * var(--d) / var(--n));
}
.item:nth-child(4) {
animation-delay: calc(-3 * var(--d) / var(--n));
}
.item:nth-child(5) {
animation-delay: calc(-4 * var(--d) / var(--n));
}
.item:nth-child(6) {
animation-delay: calc(-5 * var(--d) / var(--n));
}

@keyframes orbit-spin2 {
100% {
transform: rotate(-1turn) translate(400px) rotate(1turn);
}
}

.item-2:nth-child(1) {
animation-delay: calc(-0 * var(--de) / var(--no));
}
.item-2:nth-child(2) {
animation-delay: calc(-1 * var(--de) / var(--no));
}
.item-2:nth-child(3) {
animation-delay: calc(-2 * var(--de) / var(--no));
}
.item-2:nth-child(4) {
animation-delay: calc(-3 * var(--de) / var(--no));
}
.item-2:nth-child(5) {
animation-delay: calc(-4 * var(--de) / var(--no));
}
.item-2:nth-child(6) {
animation-delay: calc(-5 * var(--de) / var(--no));
}
.item-2:nth-child(7) {
animation-delay: calc(-6 * var(--de) / var(--no));
}
.item-2:nth-child(8) {
animation-delay: calc(-7 * var(--de) / var(--no));
}
.item-2:nth-child(9) {
animation-delay: calc(-8 * var(--de) / var(--no));
}

@keyframes orbit-spin3 {
100% {
transform: rotate(1turn) translate(500px) rotate(-1turn);
}
}

.item-3:nth-child(1) {
animation-delay: calc(-0 * var(--ds) / var(--ni));
}
.item-3:nth-child(2) {
animation-delay: calc(-1 * var(--ds) / var(--ni));
}
.item-3:nth-child(3) {
animation-delay: calc(-2 * var(--ds) / var(--ni));
}
.item-3:nth-child(4) {
animation-delay: calc(-3 * var(--ds) / var(--ni));
}
.item-3:nth-child(5) {
animation-delay: calc(-4 * var(--ds) / var(--ni));
}
.item-3:nth-child(6) {
animation-delay: calc(-5 * var(--ds) / var(--ni));
}
.item-3:nth-child(7) {
animation-delay: calc(-6 * var(--ds) / var(--ni));
}
.item-3:nth-child(8) {
animation-delay: calc(-7 * var(--ds) / var(--ni));
}
.item-3:nth-child(9) {
animation-delay: calc(-8 * var(--ds) / var(--ni));
}

.gh-img {
border: 1px solid #d4cfd76a;
border-radius: 10px;
box-shadow: 5px 20px 18px 10px #e8e8e8;
background: linear-gradient(225deg, #2dccfd 9.35%, #ad20e2 88.41%);
}

.community-pattern {
background: url('/img/homepage/circular-pattern.png');
width: 100%;
height: 90%;
background-position: center;
background-size: cover;
margin-top: -1900px;
}

.meeting-card:hover > div:nth-child(1) > div {
display: block;
color: white;
}

.meeting-card:hover > div:nth-child(2) > p {
color: white;
}

.explorer-menu-wrapper > div > div{
border: 1px solid rgb(228, 228, 228);
border-radius: 10px;
padding: 10px;
}

.explorer-menu-wrapper > div > div > div > button {
margin-top: 0px;
}

0 comments on commit 2c6d7e8

Please sign in to comment.