]> Pileus Git - ~andy/gtk/blob - demos/gtk-demo/css_multiplebgs.css
f950d32f930f543fe939db70947f1c76f4ca44ba
[~andy/gtk] / demos / gtk-demo / css_multiplebgs.css
1 /* You can edit the text in this window to change the
2  * appearance of this Window.
3  * Be careful, if you screw it up, nothing might be visible
4  * anymore. :)
5  */
6
7 /* This CSS resets all properties to their defaults values
8  *    and overrides all user settings and the theme in use */
9 @import url("reset.css");
10 @import url("cssview.css");
11
12 #canvas {
13     transition-property: background-color, background-image;
14     transition-duration: 0.5s;
15
16     background-color: #4870bc;
17 }
18
19 /* The gradients below are adapted versions of Lea Verou's CSS3 patterns,
20  * licensed under the MIT license:
21  * Copyright (c) 2011 Lea Verou, http://lea.verou.me/
22  *
23  * See https://github.com/LeaVerou/CSS3-Patterns-Gallery
24  */
25
26 /**********
27  * Bricks *
28  **********/
29 /*
30 @define-color brick_hi #d42;
31 @define-color brick_lo #b42;
32 @define-color brick_hi_backdrop #888;
33 @define-color brick_lo_backdrop #999;
34
35 #canvas {
36     background-color: #999;
37     background-image: linear-gradient(205deg, @brick_lo, @brick_lo 23px, transparent 23px),
38                       linear-gradient(25deg, @brick_hi, @brick_hi 23px, transparent 23px),
39                       linear-gradient(205deg, @brick_lo, @brick_lo 23px, transparent 23px),
40                       linear-gradient(25deg, @brick_hi, @brick_hi 23px, transparent 23px);
41     background-size: 58px 58px;
42     background-position: 0px 6px, 4px 31px, 29px 35px, 34px 2px;
43 }
44
45 #canvas:backdrop {
46     background-color: #444;
47     background-image: linear-gradient(205deg, @brick_lo_backdrop, @brick_lo_backdrop 23px, transparent 23px),
48                       linear-gradient(25deg, @brick_hi_backdrop, @brick_hi_backdrop 23px, transparent 23px),
49                       linear-gradient(205deg, @brick_lo_backdrop, @brick_lo_backdrop 23px, transparent 23px),
50                       linear-gradient(25deg, @brick_hi_backdrop, @brick_hi_backdrop 23px, transparent 23px);
51     background-size: 58px 58px;
52     background-position: 0px 6px, 4px 31px, 29px 35px, 34px 2px;
53 }
54 */
55
56 /*
57 #bricks-button {
58     background-color: #eef;
59     background-image: url('brick.png');
60     background-repeat: no-repeat;
61     background-position: center;
62 }
63
64 */
65 /**********
66  * Tartan *
67  **********/
68 /*
69 @define-color tartan_bg #662e2c;
70 @define-color tartan_bg_backdrop #333;
71
72 #canvas {
73     background-color: @tartan_bg;
74     background-image: repeating-linear-gradient(transparent, transparent 50px, rgba(0,0,0,.4) 50px,
75                                                 rgba(0,0,0,.4) 53px, transparent 53px, transparent 63px,
76                                                 rgba(0,0,0,.4) 63px, rgba(0,0,0,.4) 66px, transparent 66px,
77                                                 transparent 116px, rgba(0,0,0,.5) 116px, rgba(0,0,0,.5) 166px,
78                                                 rgba(255,255,255,.2) 166px, rgba(255,255,255,.2) 169px, rgba(0,0,0,.5) 169px,
79                                                 rgba(0,0,0,.5) 179px, rgba(255,255,255,.2) 179px, rgba(255,255,255,.2) 182px,
80                                                 rgba(0,0,0,.5) 182px, rgba(0,0,0,.5) 232px, transparent 232px),
81                       repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(0,0,0,.4) 50px, rgba(0,0,0,.4) 53px,
82                                                 transparent 53px, transparent 63px, rgba(0,0,0,.4) 63px, rgba(0,0,0,.4) 66px,
83                                                 transparent 66px, transparent 116px, rgba(0,0,0,.5) 116px, rgba(0,0,0,.5) 166px,
84                                                 rgba(255,255,255,.2) 166px, rgba(255,255,255,.2) 169px, rgba(0,0,0,.5) 169px,
85                                                 rgba(0,0,0,.5) 179px, rgba(255,255,255,.2) 179px, rgba(255,255,255,.2) 182px,
86                                                 rgba(0,0,0,.5) 182px, rgba(0,0,0,.5) 232px, transparent 232px),
87                       repeating-linear-gradient(-55deg, transparent, transparent 1px, rgba(0,0,0,.2) 1px, rgba(0,0,0,.2) 4px,
88                                                 transparent 4px, transparent 19px, rgba(0,0,0,.2) 19px,
89                                                 rgba(0,0,0,.2) 24px, transparent 24px, transparent 51px, rgba(0,0,0,.2) 51px,
90                                                 rgba(0,0,0,.2) 54px, transparent 54px, transparent 74px);
91 }
92
93 #canvas:backdrop {
94     background-color: @tartan_bg_backdrop;
95 }
96 */
97
98 /***********
99  * Stripes *
100  ***********/
101
102 /*
103 @define-color base_bg #4870bc;
104 @define-color backdrop_bg #555;
105
106 #canvas {
107   background-color: @base_bg;
108   background-image: linear-gradient(to left, transparent, rgba(255,255,255,.07) 50%, transparent 50%),
109                     linear-gradient(to left, transparent, rgba(255,255,255,.13) 50%, transparent 50%),
110                     linear-gradient(to left, transparent, transparent 50%, rgba(255,255,255,.17) 50%),
111                     linear-gradient(to left, transparent, transparent 50%, rgba(255,255,255,.19) 50%);
112   background-size: 29px, 59px, 73px, 109px;
113 }
114
115 #canvas:backdrop {
116   background-color: @backdrop_bg;
117 }
118 */
119
120 /***************
121  * Lined Paper *
122  ***************/
123 /*
124 #canvas {
125     background-color: #fff;
126     background-image: linear-gradient(90deg, transparent 79px, alpha(#f98195, 0.40) 79px, #f98195 80px, alpha(#f98195, 0.40) 81px, transparent 81px),
127                       linear-gradient(alpha(#77c5cf, 0.60), alpha(#77c5cf, 0.60) 1px, transparent 1px);
128     background-size: 100% 36px;
129 }
130
131 #canvas:backdrop {
132     background-color: #f1f2f4;
133     background-image: linear-gradient(90deg, transparent 79px, alpha(#999, 0.40) 79px, #999 80px, alpha(#999, 0.40) 81px, transparent 81px),
134                       linear-gradient(alpha(#bbb, 0.60), alpha(#bbb, 0.60) 1px, transparent 1px);
135 }
136 */