UNPKG

wid-g

Version:

A package with cool html widgets!

131 lines (123 loc) 2.55 kB
/* ---------- دکمه ---------- */ .my-btn { padding: 10px 20px; background-color: #3498db; color: white; border: none; border-radius: 5px; cursor: pointer; font-size: 14px; } .my-btn:hover { background-color: #2980b9; } /* ---------- کارت ---------- */ .my-card { border: 1px solid #ccc; border-radius: 10px; padding: 15px; max-width: 300px; box-shadow: 0 2px 5px rgba(0,0,0,0.2); background: white; } /* ---------- مودال ---------- */ .my-modal { display: none; position: fixed; z-index: 999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); } .my-modal-content { background: white; padding: 20px; margin: 15% auto; max-width: 400px; border-radius: 10px; } /* ---------- Toast Notification ---------- */ .my-toast { position: fixed; bottom: 20px; right: 20px; background: #333; color: white; padding: 10px 20px; border-radius: 5px; opacity: 0; transition: opacity 0.5s ease; z-index: 1000; } .my-toast.show { opacity: 1; } /* ---------- Tabs ---------- */ .my-tabs { display: flex; border-bottom: 2px solid #ccc; margin-bottom: 10px; } .my-tab { padding: 10px 20px; cursor: pointer; background: #eee; margin-right: 5px; border-radius: 5px 5px 0 0; } .my-tab.active { background: white; border-bottom: 2px solid white; } .my-tab-content { display: none; } .my-tab-content.active { display: block; } /* ---------- Dropdown Menu ---------- */ .my-dropdown { position: relative; display: inline-block; } .my-dropdown-content { display: none; position: absolute; background: white; border: 1px solid #ccc; min-width: 160px; z-index: 100; } .my-dropdown-content a { padding: 10px; display: block; text-decoration: none; color: black; } .my-dropdown-content a:hover { background: #f1f1f1; } /* ---------- Progress Bar ---------- */ .my-progress { width: 100%; background: #eee; border-radius: 5px; overflow: hidden; } .my-progress-bar { width: 0; height: 20px; background: #3498db; text-align: center; color: white; font-size: 12px; transition: width 0.5s ease; } .slider-container { width: 300px; margin: 50px auto; text-align: center; } input[type="range"] { width: 100%; }