]> BookStack Code Mirror - bookstack/blob - resources/assets/sass/_forms.scss
Added image name editing & deleting
[bookstack] / resources / assets / sass / _forms.scss
1
2 .input-base {
3   background-color: #FFF;
4   border-radius: 3px;
5   border: 1px solid #CCC;
6   display: inline-block;
7   font-size: $fs-s;
8   font-family: $text;
9   padding: $-xs;
10   color: #222;
11   width: 250px;
12   max-width: 100%;
13   -webkit-appearance:none;
14   &.neg, &.invalid {
15     border: 1px solid $negative;
16   }
17   &.pos, &.valid {
18     border: 1px solid $positive;
19   }
20   &.disabled, &[disabled] {
21     background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAAMUlEQVQIW2NkwAGuXbv2nxGbHEhCS0uLEUMSJgHShCKJLIEiiS4Bl8QmAZbEJQGSBAC62BuJ+tt7zgAAAABJRU5ErkJggg==);
22   }
23 }
24
25 label {
26   display: block;
27   line-height: 1.4em;
28   font-size: 0.9em;
29   font-weight: 500;
30   color: #333;
31 }
32
33 label.radio, label.checkbox {
34   font-weight: 400;
35   input[type="radio"], input[type="checkbox"] {
36     margin-right: $-xs;
37   }
38 }
39
40 input[type="text"], input[type="number"], input[type="email"], input[type="search"], input[type="url"], input[type="password"], select, textarea {
41   @extend .input-base;
42 }
43
44 .form-group {
45   margin-bottom: $-s;
46 }
47
48 .form-group {
49   .text-pos, .text-neg {
50     padding: $-xs 0;
51   }
52 }
53
54 .inline-input-style {
55   border: 2px dotted #BBB;
56   display: block;
57   width: 100%;
58   padding: $-xs $-s;
59 }
60
61 .title-input .input {
62   width: 100%;
63 }
64
65 .title-input label, .description-input label{
66   margin-top: $-m;
67   color: #666;
68 }
69
70 .title-input input[type="text"] {
71   @extend h1;
72   @extend .inline-input-style;
73   margin-top: 0;
74   padding-right: 0;
75   width: 100%;
76   color: #444;
77 }
78
79 .title-input.page-title {
80   font-size: 0.8em;
81 }
82 .title-input.page-title input[type="text"]{
83   //border: 2px dotted #BBB;
84   margin-bottom: 0;
85 }
86
87
88 .description-input textarea {
89   @extend .inline-input-style;
90   font-size: $fs-m;
91   color: #666;
92   width: 100%;
93 }