]> BookStack Code Mirror - bookstack/blob - resources/assets/sass/_forms.scss
49716154fe6704e4bfd0a732fb5aaa746b52bb10
[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.94em;
29   font-weight: 500;
30   color: #666;
31   padding-bottom: 2px;
32 }
33
34 label.radio, label.checkbox {
35   font-weight: 400;
36   input[type="radio"], input[type="checkbox"] {
37     margin-right: $-xs;
38   }
39 }
40
41 input[type="text"], input[type="number"], input[type="email"], input[type="search"], input[type="url"], input[type="password"], select, textarea {
42   @extend .input-base;
43 }
44
45 .form-group {
46   margin-bottom: $-s;
47 }
48
49 .form-group {
50   .text-pos, .text-neg {
51     padding: $-xs 0;
52   }
53 }
54
55 .inline-input-style {
56   border: 2px dotted #BBB;
57   display: block;
58   width: 100%;
59   padding: $-xs $-s;
60 }
61
62 .title-input .input {
63   width: 100%;
64 }
65
66 .title-input label, .description-input label{
67   margin-top: $-m;
68   color: #666;
69 }
70
71 .title-input input[type="text"] {
72   @extend h1;
73   @extend .inline-input-style;
74   margin-top: 0;
75   padding-right: 0;
76   width: 100%;
77   color: #444;
78 }
79
80 .title-input.page-title {
81   font-size: 0.8em;
82   .input {
83     border: 0;
84     margin-bottom: -1px;
85   }
86   input[type="text"] {
87     max-width: 840px;
88     margin: 0 auto;
89     border: none;
90   }
91 }
92
93
94
95 .description-input textarea {
96   @extend .inline-input-style;
97   font-size: $fs-m;
98   color: #666;
99   width: 100%;
100 }