File: dummy.scss

package info (click to toggle)
qtsass 0.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 344 kB
  • sloc: python: 1,337; sh: 7; makefile: 2
file content (29 lines) | stat: -rw-r--r-- 742 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

// This comment will not appear in generated css file
/* This comment will appear in generated css file */

// !editable is not valid sass/css but is tolerated in qtsass since widespread in Qt stylesheets.
QComboBox:!editable:on, QComboBox::drop-down:editable:on
{
    color: blue;
}

// standard qss qlineargradient syntax works
QListView::item:selected{
    background-color: qlineargradient(
        x1: 0,
        y1: 0,
        x2: 0,
        y2:1,
        stop: 0.2 #3f3f3f,
        stop: 0.8 red
    );
}

// You may also use QtSASS syntax directly
QTreeView::item:selected{
    $start: 0.2;
    $stops: $start #3f3f3f, $start + 0.6 red;
    background-color: qlineargradient(0, 0, 0, 1, $stops);
    color: rgba(255, 10, 10, 0.5);
}