Custom CSS आपको अपने forms और Fuse activities की visual appearance पर पूर्ण नियंत्रण देता है। NueForm CSS class selectors और CSS custom properties (variables) का एक व्यापक set प्रदान करता है जिन्हें आप अपनी custom styles में target कर सकते हैं।
- Builder में अपना form खोलें।
- Settings panel में Design tab पर navigate करें।
- Custom CSS section तक scroll करें।
- अपने CSS rules दर्ज करें।
- Changes तुरंत live preview में दिखाई देते हैं।
- Builder में अपनी Fuse activity खोलें।
- Design tab पर navigate करें।
- Custom CSS section तक scroll करें।
- CSS editor आपकी चुनी गई activity type के specific selectors दिखाता है।
ये selectors standard forms के लिए उपलब्ध हैं:
| Selector | विवरण |
|---|
.fc-container | Main form container। यह root element है जो पूरे form को wrap करता है। |
.fc-welcome | Welcome screen container। |
.fc-thankyou | Thank-you screen container। |
.fc-progress-bar | Progress bar track (background bar)। |
.fc-progress-fill | Progress bar का filled portion (current progress दिखाता है)। |
| Selector | विवरण |
|---|
.fc-question-title | Question title text। Question number और rich text content शामिल है। |
.fc-question-description | Title के नीचे question description text। |
.fc-question-number | Question number prefix (जैसे, "1 ->")। |
| Selector | विवरण |
|---|
.fc-button | Form में primary buttons (OK, Start, Submit)। |
.fc-input | Text inputs और textareas जहां respondents अपने answers type करते हैं। |
.fc-choice | Individual choice option containers (multiple choice, dropdown options)। |
.fc-choice.selected | वर्तमान में selected choice option। |
.fc-rating-icon | Individual rating shapes (stars, hearts, thumbs, आदि)। |
.fc-scale-item | Opinion scales और NPS scales पर individual items। |
| Selector | विवरण |
|---|
.fc-top-logo | Top logo container। |
.fc-watermark | Watermark या bottom-left logo element। |
/* Buttons को पूरी तरह rounded बनाएं */
.fc-button {
border-radius: 9999px;
}
/* Inputs में thicker bottom border जोड़ें */
.fc-input {
border-bottom-width: 3px;
}
/* Choices पर hover slide effect जोड़ें */
.fc-choice:hover {
transform: translateX(4px);
}
/* Selected choice को style करें */
.fc-choice.selected {
border-color: var(--fc-accent);
background-color: var(--fc-accent-10);
}
/* Progress bar height बढ़ाएं */
.fc-progress-bar {
height: 6px;
}
Fuse activities के अपने CSS selectors का set है, जो general, shared activity, और activity-specific categories में organize है।
ये हर Fuse activity पर लागू होते हैं:
| Selector | विवरण |
|---|
.fuse-container | पूरे Fuse page का root container। |
.fuse-title | Activity title heading। |
.fuse-description | Activity description text। |
.fuse-activity-area | Activity widget के चारों ओर wrapper। |
.fuse-live-badge | Live participant count badge। |
.fuse-participant-bar | Participant avatars की row। |
.fuse-join-screen | Activity से पहले दिखाई जाने वाली join/name entry screen। |
.fuse-activity-indicator | Floating activity indicator notification। |
ये selectors एक से अधिक activity types में साझा हैं:
| Selector | विवरण |
|---|
.fuse-option | Option button (polls में उपयोग)। |
.fuse-option-label | Option के भीतर text label। |
.fuse-option-percentage | Option के भीतर percentage display। |
.fuse-option-votes | Option के भीतर vote count text। |
.fuse-total-count | कुल votes summary text। |
.fuse-input | Activities में text inputs। |
.fuse-submit-btn | Submit/add buttons। |
.fuse-hint | Helper या instruction text। |
.fuse-list-item | List-type activities में item cards। |
.fuse-item-text | List items के भीतर text content। |
.fuse-item-author | List items पर contributor name। |
.fuse-score | Upvote/downvote score display। |
.fuse-upvote | Upvote button। |
.fuse-downvote | Downvote button। |
.fuse-stat-value | Statistic display value (जैसे, average, median)। |
.fuse-stat-label | Statistic display label। |
.fuse-histogram | Distribution chart container। |
.fuse-histogram-bar | Histogram में individual bar। |
.fuse-champion | Winner/champion display element। |
.fuse-consensus | Consensus section display। |
.fuse-round-label | Round header text (multi-round activities)। |
.fuse-rank-number | Rank position badge। |
.fuse-status | Status या count text। |
प्रत्येक activity type के unique selectors हैं:
| Selector | विवरण |
|---|
.fuse-classic-poll | Classic Poll root container। |
.fuse-poll | Poll options container। |
.fuse-poll--bar-chart | Bar chart display mode modifier। |
.fuse-bar | Individual bar chart column। |
.fuse-bar-label | Bar chart label text। |
| Selector | विवरण |
|---|
.fuse-multi-vote-poll | Multi-Vote Poll root container। |
| Selector | विवरण |
|---|
.fuse-image-poll | Image Poll root container। |
| Selector | विवरण |
|---|
.fuse-ranked-poll | Ranked Poll root container। |
| Selector | विवरण |
|---|
.fuse-elimination-poll | Elimination Poll root container। |
| Selector | विवरण |
|---|
.fuse-hot-takes | Hot Takes root container। |
.fuse-statement | Debate किया जा रहा statement text। |
.fuse-tug-bar | Tug-of-war visualization bar। |
.fuse-percentage--agree | Agree percentage display। |
.fuse-percentage--disagree | Disagree percentage display। |
.fuse-vote-btn--agree | Agree button। |
.fuse-vote-btn--disagree | Disagree button। |
| Selector | विवरण |
|---|
.fuse-would-you-rather | Would You Rather root container। |
.fuse-this-or-that | This Or That root container। |
.fuse-panel--left | Left option panel। |
.fuse-panel--right | Right option panel। |
.fuse-panel-label | Panel label text। |
.fuse-panel-percentage | Panel percentage display। |
| Selector | विवरण |
|---|
.fuse-sliding-scale | Sliding Scale root container। |
.fuse-slider | Slider track element। |
.fuse-slider-value | Current slider value display। |
.fuse-slider-label | Min/max label text। |
.fuse-stats | Statistics container। |
| Selector | विवरण |
|---|
.fuse-word-cloud | Word Cloud root container। |
.fuse-cloud | Cloud container। |
.fuse-word | Cloud में individual word। |
| Selector | विवरण |
|---|
.fuse-collaborative-list | Collaborative List root container। |
| Selector | विवरण |
|---|
.fuse-ranked-list | Ranked List root container। |
| Selector | विवरण |
|---|
.fuse-rate-and-reveal | Rate & Reveal root container। |
| Selector | विवरण |
|---|
.fuse-pros-and-cons | Pros & Cons root container। |
.fuse-side-column | Individual pro या con column। |
| Selector | विवरण |
|---|
.fuse-top-n | Top N root container। |
| Selector | विवरण |
|---|
.fuse-predictions | Predictions root container। |
| Selector | विवरण |
|---|
.fuse-caption-this | Caption This root container। |
| Selector | विवरण |
|---|
.fuse-map-pins | Map Pins root container। |
| Selector | विवरण |
|---|
.fuse-qa-board | Q&A Board root container। |
| Selector | विवरण |
|---|
.fuse-tier-list | Tier List root container। |
.fuse-tier-row | Individual tier row। |
.fuse-tier-label | Tier label text (S, A, B, C, D, F)। |
.fuse-tier-item | Tier के भीतर individual item। |
.fuse-tier-badge | Tier पर item count badge। |
| Selector | विवरण |
|---|
.fuse-bracket | Bracket root container। |
.fuse-matchup | Matchup container। |
.fuse-matchup-entry | Individual matchup option। |
.fuse-matchup-label | Matchup option label। |
.fuse-matchup-votes | Matchup vote count display। |
Class selectors के अलावा, आप अपने rules में CSS custom properties reference कर सकते हैं। ये theme system द्वारा सेट होते हैं और प्रत्येक form की configuration के अनुसार adapt करते हैं।
| Variable | विवरण |
|---|
var(--fc-title-color) | Title text color। |
var(--fc-description-color) | Description text color। |
var(--fc-option-color) | Activity/option text color। |
var(--fc-font-question) | Title font family। |
var(--fc-font-description) | Description font family। |
var(--fc-font-option) | Activity/option font family। |
var(--fc-accent) | Accent/theme color। |
var(--fc-bg) | Background color। |
var(--fc-text) | Primary text color। |
var(--fc-btn-bg) | Button background color। |
var(--fc-btn-text) | Button text color। |
var(--fc-border) | Border color। |
var(--fc-input-bg) | Input background color। |
var(--fc-muted) | Muted/secondary text color। |
var(--fc-indicator-bg) | Activity indicator background color। |
var(--fc-indicator-text) | Activity indicator text color। |
var(--fc-font-indicator) | Activity indicator font family। |
आप form की theme के अनुसार adapt करने वाली styles बनाने के लिए इन variables को अपने custom CSS में reference कर सकते हैं:
/* Theme के accent color का उपयोग करके custom border */
.fc-choice {
border: 2px solid var(--fc-accent-30);
}
/* Theme colors का उपयोग करके custom input styling */
.fc-input {
background-color: var(--fc-input-bg);
border-color: var(--fc-border);
}
/* Theme-aware styling के साथ Fuse activity */
.fuse-option {
border: 1px solid var(--fc-border);
border-radius: 20px;
}
Form-level custom CSS के अलावा, आप individual questions और उनके media elements में custom CSS class names जोड़ सकते हैं:
- Question Custom Class Name (
customClassName): Question container पर लागू। - Media Custom Class Name (
media.customClassName): Media element पर लागू।
यह आपको अपने CSS में specific questions को target करने देता है:
/* केवल "hero" question को अलग तरह से style करें */
.hero-question .fc-question-title {
font-size: 3rem;
text-align: center;
}
फिर builder में question का custom class name hero-question सेट करें।
- CSS variables का उपयोग करें: Colors hard-code करने के बजाय
var(--fc-accent) और अन्य theme variables reference करें। यह सुनिश्चित करता है कि theme बदलने पर आपकी custom styles adapt करें। - Preview में test करें: Custom CSS जोड़ने के बाद हमेशा अपने form का preview करें और verify करें कि styles desktop और mobile दोनों पर सही दिखती हैं।
- Specificity: NueForm की built-in styles low specificity का उपयोग करती हैं। अधिकांश मामलों में आपकी custom CSS को
!important की आवश्यकता के बिना उन्हें override करना चाहिए। - Responsive design: यदि आपको mobile बनाम desktop पर अलग styles चाहिए तो अपने custom CSS में media queries का उपयोग करें।
- Layout तोड़ने से बचें:
position, display, और overflow जैसी properties से सावधान रहें जो form की layout तोड़ सकती हैं।
/* Rounded, card-style questions */
.fc-container {
padding: 2rem;
}
/* Pill-shaped buttons */
.fc-button {
border-radius: 9999px;
padding: 12px 32px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
}
/* Underline-style inputs */
.fc-input {
border: none;
border-bottom: 2px solid var(--fc-border);
border-radius: 0;
background: transparent;
padding-left: 0;
}
.fc-input:focus {
border-bottom-color: var(--fc-accent);
}
/* Hover effect के साथ choice cards */
.fc-choice {
border-radius: 12px;
transition: all 0.2s ease;
}
.fc-choice:hover {
transform: translateX(4px);
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
/* Larger rating icons */
.fc-rating-icon {
font-size: 2rem;
}
/* Subtle progress bar */
.fc-progress-bar {
height: 3px;
opacity: 0.5;
}