]> BookStack Code Mirror - bookstack/blob - resources/assets/sass/_forms.scss
Expanded chapters interface and improved book/page deletion
[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 .inline-input-style {
49   border: 2px dotted #BBB;
50   display: block;
51   width: 100%;
52   padding: $-xs $-s;
53 }
54
55 .title-input .input {
56   width: 100%;
57 }
58
59 .title-input label, .description-input label{
60   margin-top: $-m;
61   color: #666;
62 }
63
64 .title-input input[type="text"] {
65   @extend h1;
66   @extend .inline-input-style;
67   margin-top: 0;
68   padding-right: 0;
69   width: 100%;
70   color: #444;
71 }
72
73 .title-input.page-title {
74   font-size: 0.8em;
75 }
76 .title-input.page-title input[type="text"]{
77   //border: 2px dotted #BBB;
78   margin-bottom: 0;
79 }
80
81
82 .description-input textarea {
83   @extend .inline-input-style;
84   font-size: $fs-m;
85   color: #666;
86   width: 100%;
87 }