Skip to content

General Settings Styles

File Information

  • Path: assets/css/general-settings.css
  • Purpose: Settings page and form styles
  • Size: ~11.1 KB

Overview

The General Settings CSS file provides comprehensive styles for workspace settings pages, including form layouts, input fields, buttons, sections, and settings-specific components.

Key Features

  1. Form Layouts

    • Form containers
    • Input groups
    • Field layouts
    • Section spacing
  2. Input Styling

    • Text inputs
    • Select dropdowns
    • Checkboxes
    • Radio buttons
  3. Settings Sections

    • Section headers
    • Section content
    • Dividers
    • Card layouts

CSS Classes

Form Containers

css
.settings-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.settings-section {
  padding: 24px;
  background-color: var(--DBwhite);
  border-radius: 8px;
  border: 1px solid var(--borderColor);
}

Properties:

  • Column layout
  • Spacing between sections
  • White background
  • Bordered containers

Section Headers

css
.settings-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--borderColor);
}

.settings-section-header h3 {
  font-size: var(--fontsize18);
  font-weight: 600;
  color: var(--DBgray);
  margin: 0;
}

.settings-section-header .subtitle {
  font-size: var(--fontsize14);
  color: var(--DBgray5252);
  margin-top: 4px;
}

Properties:

  • Flex layout
  • Bottom border
  • Title and subtitle
  • Spacing

Input Fields

css
.settings-input {
  width: 100%;
}

.settings-input .v-text-field {
  margin-bottom: 16px;
}

.settings-input .v-text-field__details {
  margin-top: 4px;
}

.settings-input label {
  font-size: var(--fontsize14);
  font-weight: 500;
  color: var(--DBgray);
}

Properties:

  • Full width
  • Bottom margin
  • Label styling
  • Details spacing

Form Groups

css
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group.row {
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.form-group.row label {
  min-width: 200px;
  margin-bottom: 0;
}

Properties:

  • Column/row layouts
  • Gap spacing
  • Label width
  • Alignment

Buttons

css
.settings-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--borderColor);
}

.settings-actions .v-btn {
  min-width: 120px;
}

.settings-actions .v-btn--primary {
  background-color: var(--DBblue);
  color: var(--DBwhite);
}

Properties:

  • Flex layout
  • Right alignment
  • Top border
  • Button sizing

Cards and Containers

css
.settings-card {
  background-color: var(--DBwhite);
  border-radius: 8px;
  border: 1px solid var(--borderColor);
  padding: 20px;
  margin-bottom: 16px;
}

.settings-card:hover {
  border-color: var(--DBblue);
  box-shadow: 0px 2px 6px 0px var(--boxshadow10);
}

Properties:

  • White background
  • Bordered container
  • Hover effect
  • Box shadow

Tabs

css
.settings-tabs {
  border-bottom: 1px solid var(--borderColor);
  margin-bottom: 24px;
}

.settings-tabs .v-tab {
  font-size: var(--fontsize14);
  font-weight: 500;
  color: var(--DBgray5252);
  text-transform: none;
  padding: 12px 24px;
}

.settings-tabs .v-tab.v-tab--active {
  color: var(--DBblue);
  font-weight: 600;
}

Properties:

  • Bottom border
  • Tab styling
  • Active state
  • Blue active color

Dividers

css
.settings-divider {
  margin: 24px 0;
  border-color: var(--DBgrayLight2);
}

.settings-divider.thick {
  border-width: 2px;
}

Properties:

  • Vertical spacing
  • Border color
  • Thickness option

Responsive Design

css
@media only screen and (max-width: 960.98px) {
  .settings-section {
    padding: 16px;
  }
  
  .form-group.row {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .form-group.row label {
    min-width: auto;
  }
  
  .settings-actions {
    flex-direction: column;
  }
  
  .settings-actions .v-btn {
    width: 100%;
  }
}

Properties:

  • Reduced padding
  • Column layout on mobile
  • Full-width buttons
  • Stacked actions

Usage Examples

Settings Section

html
<div class="settings-section">
  <div class="settings-section-header">
    <div>
      <h3>General Settings</h3>
      <div class="subtitle">Manage your workspace settings</div>
    </div>
  </div>
  
  <div class="form-group">
    <label>Workspace Name</label>
    <v-text-field
      v-model="workspaceName"
      placeholder="Enter workspace name"
    ></v-text-field>
  </div>
  
  <div class="settings-actions">
    <v-btn>Cancel</v-btn>
    <v-btn color="primary">Save</v-btn>
  </div>
</div>

Form Group Row

html
<div class="form-group row">
  <label>Enable Feature</label>
  <v-switch v-model="enabled"></v-switch>
</div>

Settings Card

html
<div class="settings-card">
  <h4>Subscription Plan</h4>
  <p>Current plan: Pro</p>
  <v-btn>Upgrade</v-btn>
</div>

Integration Points

  • Workspace Settings Page: Main settings interface
  • Account & Billing: Billing settings
  • DAM Settings: DAM configuration
  • User Management: User settings

Notes for Development

  • Uses CSS variables for theming
  • Responsive breakpoints included
  • Consistent spacing
  • Hover effects
  • Form validation styles