]> BookStack Code Mirror - bookstack/blob - resources/assets/sass/_forms.scss
Vastly improved design
[bookstack] / resources / assets / sass / _forms.scss
1
2 .input-base {
3   background-color: #FFF;
4   border-radius: 2px;
5   border: 1px solid #BBB;
6   border-top: 1px solid #AAA;
7   display: inline-block;
8   font-size: $fs-s;
9   font-family: $text;
10   padding: $-xs;
11   color: #222;
12   width: 250px;
13   max-width: 100%;
14   -webkit-appearance:none;
15   &.neg, &.invalid {
16     border: 1px solid $negative;
17   }
18   &.pos, &.valid {
19     border: 1px solid $positive;
20   }
21   &.disabled, &[disabled] {
22     background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAAMUlEQVQIW2NkwAGuXbv2nxGbHEhCS0uLEUMSJgHShCKJLIEiiS4Bl8QmAZbEJQGSBAC62BuJ+tt7zgAAAABJRU5ErkJggg==);
23   }
24 }
25
26 label {
27   display: block;
28   line-height: 1.4em;
29   font-size: 0.9em;
30   font-weight: 500;
31   color: #333;
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 .inline-input-style {
50   border: 2px dotted #BBB;
51   display: block;
52   width: 100%;
53   padding: $-xs $-s;
54 }
55
56 .title-input label, .description-input label{
57   margin-top: $-m;
58   color: #666;
59 }
60
61 .title-input input[type="text"] {
62   @extend h1;
63   @extend .inline-input-style;
64   margin-top: 0;
65   color: #444;
66 }
67
68 .title-input.page-title {
69   padding: $-s;
70 }
71 .title-input.page-title input[type="text"]{
72   //border: 2px dotted #BBB;
73   margin-bottom: 0;
74 }
75 .edit-area {
76   padding:  0 $-s $-s $-s;
77 }
78
79 .description-input textarea {
80   @extend .inline-input-style;
81   font-size: $fs-m;
82   color: #666;
83   width: 100%;
84 }