forked from TurboWarp/scratch-gui
-
Notifications
You must be signed in to change notification settings - Fork 187
Expand file tree
/
Copy pathproject-title-input.css
More file actions
52 lines (46 loc) · 1.31 KB
/
project-title-input.css
File metadata and controls
52 lines (46 loc) · 1.31 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
@import "../../css/colors.css";
@import "../../css/units.css";
@import "../../css/z-index.css";
/*
If project-title-input.jsx is part of a menu bar say menu-bar.jsx, it can have additional css classes that
can set a width for example or what it should do in a flex box (eg. grow).
*/
.title-field {
border: 1px dashed $ui-black-transparent;
border-radius: $form-radius;
-webkit-border-radius: $form-radius;
-moz-border-radius: $form-radius;
background-color: $ui-white-transparent;
background-clip: padding-box;
-webkit-background-clip: padding-box;
height: auto;
padding: .5rem;
}
.title-field {
color: $text-menubar;
font-weight: bold;
font-size: .8rem;
}
.title-field::placeholder {
color: $text-menubar;
font-weight: normal;
font-size: .8rem;
font-style: italic;
}
.title-field:hover {
background-color: hsla(0, 100%, 100%, 0.5);
}
[theme="dark"] .title-field:hover {
background-color: rgba(0, 0, 0, 0.5);
}
.title-field:focus {
outline:none;
border: 1px solid $ui-transparent;
-webkit-box-shadow: 0 0 0 calc($space * .5) $ui-white-transparent;
box-shadow: 0 0 0 calc($space * .5) $ui-white-transparent;
background-color: $ui-white;
color: $text-primary;
}
[theme="dark"] .title-field:focus {
background-color: rgba(0, 0, 0, 0.3);
}