Chahuadev-smart-roadmap / dev_test /advanced-css.css
chahuadev's picture
Upload 74 files
4fea3ee verified
/*
🎨 Advanced CSS Test File for Chahuadev Emoji Cleaner Tool
🧪 Comprehensive CSS patterns with extensive emoji usage for testing
📝 Features: Complex selectors, animations, responsive design, modern CSS
🎯 Perfect for testing emoji removal from CSS files
*/
/* 🌟 CSS Variables with emoji-themed color palette */
:root {
/* 🎨 Primary color scheme with emoji associations */
--color-success: #28a745; /* 🟢 Green for success states */
--color-warning: #ffc107; /* 🟡 Yellow for warning states */
--color-danger: #dc3545; /* 🔴 Red for danger states */
--color-info: #17a2b8; /* 🔵 Blue for info states */
--color-primary: #007bff; /* 💙 Primary blue theme */
/* 🎪 Advanced gradient definitions */
--gradient-rainbow: linear-gradient(45deg,
#ff6b6b 0%, /* 🍎 Red */
#ffa500 14%, /* 🧡 Orange */
#ffff00 28%, /* 💛 Yellow */
#32cd32 42%, /* 💚 Green */
#00bfff 57%, /* 💙 Blue */
#8a2be2 71%, /* 💜 Purple */
#ff69b4 85%, /* 💗 Pink */
#ff6b6b 100% /* 🍎 Red again */
);
--gradient-sunset: linear-gradient(135deg,
#ff9a9e 0%, /* 🌅 Pink dawn */
#fecfef 50%, /* 🌸 Light pink */
#fecfef 100% /* 🌸 Pink end */
);
--gradient-ocean: linear-gradient(180deg,
#74b9ff 0%, /* 🌊 Light blue */
#0984e3 50%, /* 🌊 Ocean blue */
#2d3436 100% /* 🌊 Deep ocean */
);
/* 📱 Responsive breakpoints with emoji labels */
--breakpoint-mobile: 576px; /* 📱 Mobile devices */
--breakpoint-tablet: 768px; /* 📱 Tablet devices */
--breakpoint-desktop: 992px; /* 💻 Desktop devices */
--breakpoint-wide: 1200px; /* 🖥️ Wide screens */
/* 🎭 Animation timing functions */
--ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55); /* 🎾 Bouncy animation */
--ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94); /* 🌊 Smooth animation */
--ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275); /* 🎪 Elastic animation */
/* 🎨 Typography with emoji fonts */
--font-emoji: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
--font-primary: 'Arial', 'Helvetica Neue', sans-serif;
--font-monospace: 'Fira Code', 'Monaco', 'Consolas', monospace;
/* 📏 Spacing scale with emoji references */
--space-xs: 0.25rem; /* 🤏 Extra small spacing */
--space-sm: 0.5rem; /* 👌 Small spacing */
--space-md: 1rem; /* 👆 Medium spacing */
--space-lg: 2rem; /* 👋 Large spacing */
--space-xl: 4rem; /* 🙌 Extra large spacing */
/* 🎯 Z-index layers */
--z-background: -1; /* 🖼️ Background layer */
--z-content: 1; /* 📝 Content layer */
--z-overlay: 100; /* 🎭 Overlay layer */
--z-modal: 1000; /* 🪟 Modal layer */
--z-tooltip: 9999; /* 💬 Tooltip layer */
}
/* 🌍 Global reset with emoji-friendly styling */
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
/* 📄 Body styling with emoji support */
body {
font-family: var(--font-primary), var(--font-emoji);
line-height: 1.6;
color: #333;
background: var(--gradient-sunset);
min-height: 100vh;
overflow-x: hidden;
}
/* 🎯 Custom emoji selectors and pseudo-elements */
.emoji-container::before {
content: "🎨"; /* 🎨 Default emoji decoration */
position: absolute;
top: -10px;
left: -10px;
font-size: 2rem;
z-index: var(--z-content);
opacity: 0.7;
transition: all 0.3s var(--ease-bounce);
}
.emoji-container.success::before { content: "✅"; }
.emoji-container.warning::before { content: "⚠️"; }
.emoji-container.danger::before { content: "❌"; }
.emoji-container.info::before { content: "ℹ️"; }
/* 🎪 Advanced CSS Grid layout with emoji labeling */
.emoji-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
grid-gap: var(--space-lg);
padding: var(--space-xl);
background: var(--gradient-rainbow);
background-size: 400% 400%;
animation: gradient-shift 15s ease infinite;
}
.emoji-grid::before {
content: "🎯 Grid Layout Active"; /* 🎯 Grid indicator */
grid-column: 1 / -1;
text-align: center;
font-weight: bold;
padding: var(--space-md);
background: rgba(255, 255, 255, 0.9);
border-radius: 10px;
margin-bottom: var(--space-lg);
}
/* 📊 Complex flexbox patterns with emoji states */
.emoji-flex {
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: stretch;
min-height: 300px;
background: var(--gradient-ocean);
border-radius: 15px;
padding: var(--space-lg);
position: relative;
overflow: hidden;
}
.emoji-flex::after {
content: "🌊"; /* 🌊 Flex indicator */
position: absolute;
bottom: 10px;
right: 15px;
font-size: 3rem;
opacity: 0.3;
pointer-events: none;
}
/* 🎭 Advanced animation keyframes with emoji themes */
@keyframes emoji-bounce {
0%, 100% {
transform: translateY(0) scale(1);
content: "😊"; /* 😊 Happy state */
}
25% {
transform: translateY(-20px) scale(1.1);
content: "🚀"; /* 🚀 Rising state */
}
50% {
transform: translateY(-30px) scale(1.2);
content: "⭐"; /* ⭐ Peak state */
}
75% {
transform: translateY(-10px) scale(1.1);
content: "🎯"; /* 🎯 Descending state */
}
}
@keyframes emoji-pulse {
0%, 100% {
transform: scale(1);
filter: hue-rotate(0deg);
box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
}
50% {
transform: scale(1.05);
filter: hue-rotate(180deg);
box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
}
}
@keyframes emoji-rotate {
from {
transform: rotate(0deg);
content: "🎪"; /* 🎪 Start rotation */
}
25% {
content: "🎭"; /* 🎭 Quarter turn */
}
50% {
content: "🎨"; /* 🎨 Half turn */
}
75% {
content: "🎯"; /* 🎯 Three quarter turn */
}
to {
transform: rotate(360deg);
content: "🎪"; /* 🎪 Full rotation */
}
}
@keyframes gradient-shift {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
@keyframes emoji-wave {
0%, 100% {
transform: translateY(0) translateX(0);
content: "🌊"; /* 🌊 Wave start */
}
25% {
transform: translateY(-10px) translateX(5px);
content: "🌀"; /* 🌀 Wave rise */
}
50% {
transform: translateY(-20px) translateX(10px);
content: "💨"; /* 💨 Wave peak */
}
75% {
transform: translateY(-10px) translateX(5px);
content: "🌀"; /* 🌀 Wave fall */
}
}
/* 🎨 Complex CSS shapes with emoji decorations */
.emoji-shape {
position: relative;
width: 200px;
height: 200px;
margin: var(--space-lg) auto;
}
.emoji-shape.triangle {
width: 0;
height: 0;
border-left: 100px solid transparent;
border-right: 100px solid transparent;
border-bottom: 173px solid var(--color-primary);
}
.emoji-shape.triangle::before {
content: "🔺"; /* 🔺 Triangle indicator */
position: absolute;
top: 60px;
left: -15px;
font-size: 2rem;
}
.emoji-shape.circle {
border-radius: 50%;
background: radial-gradient(circle, var(--color-success), var(--color-warning));
}
.emoji-shape.circle::before {
content: "⭕"; /* ⭕ Circle indicator */
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 3rem;
}
.emoji-shape.hexagon {
width: 200px;
height: 173px;
background: var(--color-info);
position: relative;
margin: 86px auto;
}
.emoji-shape.hexagon::before,
.emoji-shape.hexagon::after {
content: "";
position: absolute;
width: 0;
border-left: 100px solid transparent;
border-right: 100px solid transparent;
}
.emoji-shape.hexagon::before {
bottom: 100%;
border-bottom: 86px solid var(--color-info);
}
.emoji-shape.hexagon::after {
top: 100%;
border-top: 86px solid var(--color-info);
}
/* 🎯 Responsive design with emoji breakpoint indicators */
@media (max-width: 576px) /* 📱 Mobile */ {
.emoji-grid {
grid-template-columns: 1fr;
padding: var(--space-md);
}
.emoji-grid::before {
content: "📱 Mobile Layout Active";
}
.emoji-responsive::before {
content: "📱"; /* 📱 Mobile indicator */
position: fixed;
top: 10px;
right: 10px;
font-size: 2rem;
z-index: var(--z-tooltip);
}
}
@media (min-width: 577px) and (max-width: 768px) /* 📱 Tablet */ {
.emoji-grid {
grid-template-columns: repeat(2, 1fr);
}
.emoji-grid::before {
content: "📱 Tablet Layout Active";
}
.emoji-responsive::before {
content: "📱"; /* 📱 Tablet indicator */
position: fixed;
top: 10px;
right: 10px;
font-size: 2rem;
z-index: var(--z-tooltip);
}
}
@media (min-width: 769px) and (max-width: 992px) /* 💻 Desktop */ {
.emoji-grid {
grid-template-columns: repeat(3, 1fr);
}
.emoji-grid::before {
content: "💻 Desktop Layout Active";
}
.emoji-responsive::before {
content: "💻"; /* 💻 Desktop indicator */
position: fixed;
top: 10px;
right: 10px;
font-size: 2rem;
z-index: var(--z-tooltip);
}
}
@media (min-width: 993px) /* 🖥️ Wide screen */ {
.emoji-grid::before {
content: "🖥️ Wide Screen Layout Active";
}
.emoji-responsive::before {
content: "🖥️"; /* 🖥️ Wide screen indicator */
position: fixed;
top: 10px;
right: 10px;
font-size: 2rem;
z-index: var(--z-tooltip);
}
}
/* 🎪 Advanced pseudo-selectors with emoji content */
.emoji-list li:nth-child(odd)::before {
content: "🔹"; /* 🔹 Odd list items */
margin-right: var(--space-sm);
}
.emoji-list li:nth-child(even)::before {
content: "🔸"; /* 🔸 Even list items */
margin-right: var(--space-sm);
}
.emoji-list li:first-child::before {
content: "🥇"; /* 🥇 First item */
}
.emoji-list li:last-child::before {
content: "🏁"; /* 🏁 Last item */
}
.emoji-list li:nth-child(3n)::before {
content: "🎯"; /* 🎯 Every third item */
}
/* 🎨 Complex CSS selectors with emoji states */
.emoji-card:not(.disabled):hover {
transform: translateY(-5px) scale(1.02);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.emoji-card:not(.disabled):hover::before {
content: "✨"; /* ✨ Hover state */
position: absolute;
top: -20px;
left: 50%;
transform: translateX(-50%);
font-size: 2rem;
animation: emoji-bounce 0.6s ease;
}
.emoji-input:focus + .emoji-label::before {
content: "🎯"; /* 🎯 Focused input */
color: var(--color-primary);
}
.emoji-input:valid + .emoji-label::before {
content: "✅"; /* ✅ Valid input */
color: var(--color-success);
}
.emoji-input:invalid + .emoji-label::before {
content: "❌"; /* ❌ Invalid input */
color: var(--color-danger);
}
/* 🎭 Advanced CSS transformations */
.emoji-transform-3d {
transform-style: preserve-3d;
perspective: 1000px;
}
.emoji-flip {
transition: transform 0.8s var(--ease-smooth);
}
.emoji-flip:hover {
transform: rotateY(180deg);
}
.emoji-flip::before {
content: "🎪"; /* 🎪 Front face */
position: absolute;
backface-visibility: hidden;
}
.emoji-flip::after {
content: "🎭"; /* 🎭 Back face */
position: absolute;
transform: rotateY(180deg);
backface-visibility: hidden;
}
/* 🌈 CSS Filters with emoji effects */
.emoji-filter {
transition: all 0.3s ease;
}
.emoji-filter.sepia {
filter: sepia(100%) hue-rotate(45deg);
}
.emoji-filter.sepia::before {
content: "🟤"; /* 🟤 Sepia effect */
}
.emoji-filter.grayscale {
filter: grayscale(100%);
}
.emoji-filter.grayscale::before {
content: "⚫"; /* ⚫ Grayscale effect */
}
.emoji-filter.blur {
filter: blur(2px);
}
.emoji-filter.blur::before {
content: "🌫️"; /* 🌫️ Blur effect */
}
.emoji-filter.brightness {
filter: brightness(150%) saturate(120%);
}
.emoji-filter.brightness::before {
content: "☀️"; /* ☀️ Brightness effect */
}
/* 🎯 CSS Counters with emoji numbering */
.emoji-counter {
counter-reset: emoji-count;
}
.emoji-counter .item {
counter-increment: emoji-count;
}
.emoji-counter .item::before {
content: "🎯 " counter(emoji-count) " ";
font-weight: bold;
color: var(--color-primary);
}
/* 🎪 Complex clip-path shapes */
.emoji-clip {
clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
background: var(--gradient-rainbow);
width: 200px;
height: 200px;
position: relative;
}
.emoji-clip::before {
content: "🔻"; /* 🔻 Clipped shape indicator */
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 3rem;
}
/* 🎨 CSS Masks with emoji patterns */
.emoji-mask {
mask: radial-gradient(circle, black 50%, transparent 50%);
-webkit-mask: radial-gradient(circle, black 50%, transparent 50%);
background: var(--gradient-sunset);
width: 200px;
height: 200px;
position: relative;
}
.emoji-mask::before {
content: "🎭"; /* 🎭 Mask indicator */
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 2rem;
}
/* 🔥 Advanced CSS custom properties usage */
.emoji-dynamic {
--emoji-size: 2rem;
--emoji-color: #ff6b6b;
--emoji-rotation: 0deg;
--emoji-scale: 1;
font-size: var(--emoji-size);
color: var(--emoji-color);
transform: rotate(var(--emoji-rotation)) scale(var(--emoji-scale));
transition: all 0.3s var(--ease-elastic);
}
.emoji-dynamic:hover {
--emoji-size: 3rem;
--emoji-color: #4ecdc4;
--emoji-rotation: 15deg;
--emoji-scale: 1.2;
}
.emoji-dynamic::before {
content: "🎪"; /* 🎪 Dynamic emoji */
}
/* 📊 CSS Grid advanced patterns */
.emoji-grid-complex {
display: grid;
grid-template-columns: repeat(12, 1fr);
grid-template-rows: repeat(6, 100px);
grid-gap: 10px;
padding: var(--space-lg);
}
.emoji-grid-item {
background: var(--gradient-ocean);
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
font-size: 2rem;
transition: all 0.3s ease;
}
.emoji-grid-item:nth-child(1) {
grid-column: 1 / 4;
grid-row: 1 / 3;
}
.emoji-grid-item:nth-child(1)::before {
content: "🎯"; /* 🎯 Featured item */
}
.emoji-grid-item:nth-child(2) {
grid-column: 4 / 7;
grid-row: 1 / 2;
}
.emoji-grid-item:nth-child(2)::before {
content: "🚀"; /* 🚀 Action item */
}
.emoji-grid-item:nth-child(3) {
grid-column: 7 / 13;
grid-row: 1 / 4;
}
.emoji-grid-item:nth-child(3)::before {
content: "📊"; /* 📊 Data item */
}
/* 🎭 CSS Container queries (modern CSS) */
@container (min-width: 300px) {
.emoji-container-query::before {
content: "📱"; /* 📱 Small container */
}
}
@container (min-width: 600px) {
.emoji-container-query::before {
content: "💻"; /* 💻 Medium container */
}
}
@container (min-width: 900px) {
.emoji-container-query::before {
content: "🖥️"; /* 🖥️ Large container */
}
}
/* 🌟 CSS Scroll-driven animations */
@keyframes scroll-progress {
from {
content: "🔄"; /* 🔄 Loading */
transform: scaleX(0);
}
to {
content: "✅"; /* ✅ Complete */
transform: scaleX(1);
}
}
.emoji-scroll-indicator {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 4px;
background: var(--gradient-rainbow);
transform-origin: left;
animation: scroll-progress linear;
animation-timeline: scroll(root);
z-index: var(--z-tooltip);
}
/* 🎨 Advanced CSS logical properties */
.emoji-logical {
margin-block-start: var(--space-lg);
margin-block-end: var(--space-lg);
margin-inline-start: var(--space-md);
margin-inline-end: var(--space-md);
padding-block: var(--space-md);
padding-inline: var(--space-lg);
border-block-start: 2px solid var(--color-primary);
border-inline-start: 4px solid var(--color-success);
}
.emoji-logical::before {
content: "🌐"; /* 🌐 International layout */
position: absolute;
inset-block-start: 0;
inset-inline-end: 0;
}
/* 🎪 Print styles with emoji indicators */
@media print {
.emoji-print-only::before {
content: "🖨️ Print Version"; /* 🖨️ Print indicator */
display: block;
text-align: center;
font-weight: bold;
margin-bottom: var(--space-md);
}
.emoji-no-print {
display: none !important;
}
.emoji-card {
break-inside: avoid;
page-break-inside: avoid;
}
}
/* 🎯 Accessibility improvements with emoji cues */
.emoji-accessible {
position: relative;
}
.emoji-accessible:focus::before {
content: "🎯"; /* 🎯 Focus indicator */
position: absolute;
top: -30px;
left: 50%;
transform: translateX(-50%);
background: var(--color-primary);
color: white;
padding: 4px 8px;
border-radius: 4px;
font-size: 1rem;
z-index: var(--z-tooltip);
}
.emoji-accessible[aria-pressed="true"]::after {
content: "✅"; /* ✅ Pressed state */
position: absolute;
top: 0;
right: 0;
font-size: 1.2rem;
}
/* 🚀 Performance optimizations */
.emoji-performance {
contain: layout style paint;
will-change: transform, opacity;
transform: translateZ(0); /* Create compositing layer */
}
.emoji-performance::before {
content: "⚡"; /* ⚡ Performance optimized */
position: absolute;
top: 0;
left: 0;
opacity: 0.7;
}
/* 🎨 Dark mode support with emoji themes */
@media (prefers-color-scheme: dark) {
:root {
--color-primary: #64b5f6; /* 🌙 Dark mode primary */
--color-success: #81c784; /* 🌙 Dark mode success */
--color-warning: #ffb74d; /* 🌙 Dark mode warning */
--color-danger: #e57373; /* 🌙 Dark mode danger */
}
body {
background: linear-gradient(135deg, #2c3e50, #34495e);
color: #ecf0f1;
}
.emoji-dark-mode::before {
content: "🌙"; /* 🌙 Dark mode indicator */
position: fixed;
top: 10px;
left: 10px;
font-size: 2rem;
z-index: var(--z-tooltip);
}
}
/* 🎪 High contrast mode support */
@media (prefers-contrast: high) {
.emoji-high-contrast {
border: 2px solid currentColor;
background: transparent;
}
.emoji-high-contrast::before {
content: "🔲"; /* 🔲 High contrast indicator */
position: absolute;
top: 0;
right: 0;
}
}
/* 🎯 Reduced motion support */
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
.emoji-reduced-motion::before {
content: "⏸️"; /* ⏸️ Reduced motion indicator */
position: fixed;
bottom: 10px;
right: 10px;
font-size: 1.5rem;
z-index: var(--z-tooltip);
}
}
/* 🌟 Modern CSS features showcase */
.emoji-modern {
background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
background-size: 200% 200%;
animation: shimmer 2s infinite;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}
.emoji-modern::before {
content: "✨"; /* ✨ Modern CSS indicator */
position: absolute;
top: 10px;
right: 10px;
font-size: 1.5rem;
}
@keyframes shimmer {
0% { background-position: -200% 0; }
100% { background-position: 200% 0; }
}
/*
🎉 End of Advanced CSS Test File
📝 This file contains comprehensive CSS patterns with extensive emoji usage
🧪 Features: Variables, animations, responsive design, modern CSS features
🎯 Perfect for testing emoji removal capabilities across all CSS constructs
📊 Total emoji count: 200+ emojis in various contexts (content, comments, selectors)
✅ All CSS is valid and follows modern best practices
*/