Subversion Repositories Integrator Subversion

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 espaco 1
/**
2
 * Bootstrap-Markdown.less
3
 *
4
 * @author Taufan Aditya @taufanaditya
5
 * @copyright 2013 Taufan Aditya
6
 */
7
 
8
.md-editor {
9
  display: block;
10
  border: 1px solid @table-border-color;
11
 
12
  > .md-header, .md-footer {
13
    display: block;
14
    padding: 6px 4px;
15
    background: @panel-default-heading-bg;
16
  }
17
 
18
  > .md-header {
19
    margin: 0;
20
  }
21
 
22
  > .md-preview {
23
    background: @panel-bg;
24
    border-top: 1px dashed @table-border-color;
25
    border-bottom: 1px dashed @table-border-color;
26
    min-height: 10px;
27
    overflow: auto;
28
  }
29
 
30
  > textarea {
31
    font-family: @font-family-monospace;
32
    font-size: @font-size-base;
33
    outline: 0;
34
    outline: thin dotted  \9; /* IE6-9 */
35
    margin: 0;
36
    display: block;
37
    padding: 0;
38
    width: 100%;
39
    border: 0;
40
    border-top: 1px dashed @table-border-color;
41
    border-bottom: 1px dashed @table-border-color;
42
    border-radius: 0;
43
    box-shadow: none;
44
    background: @input-bg-disabled;
45
    &:focus {
46
      box-shadow: none;
47
      background: @input-bg;
48
    }
49
  }
50
 
51
  // Hover state
52
  @color: @input-border-focus;
53
  @color-rgba: rgba(red(@color), green(@color), blue(@color), .6);
54
  &.active {
55
    border-color: @color;
56
    outline: 0;
57
    .box-shadow(~"inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px @{color-rgba}");
58
  }
59
 
60
  .md-controls {
61
    float: right;
62
    padding: 3px;
63
 
64
    .md-control {
65
      right: 5px;
66
      color: #bebebe;
67
      padding: 3px 3px 3px 10px;
68
      &:hover {
69
        color: #333;
70
      }
71
    }
72
  }
73
 
74
  // fullscreen mode styles
75
  &.md-fullscreen-mode {
76
    width: 100%;
77
    height: 100%;
78
    position: fixed;
79
    top: 0;
80
    left: 0;
81
    z-index: 99999;
82
    padding: 60px 30px 15px;
83
    background: #fff !important;
84
    border: 0 !important;
85
 
86
    .md-footer {
87
      display: none;
88
    }
89
 
90
    .md-input,
91
    .md-preview {
92
      margin: 0 auto !important;
93
      height: 100% !important;
94
      font-size: 20px !important;
95
      padding: 20px !important;
96
      color: #999;
97
      line-height: 1.6em !important;
98
      resize: none !important;
99
      box-shadow: none !important;
100
      background: #fff !important;
101
      border: 0 !important;
102
    }
103
 
104
    .md-preview {
105
      color: #333;
106
      overflow: auto;
107
    }
108
 
109
    .md-input {
110
      &:hover,
111
      &:focus {
112
        color: #333;
113
        background: #fff !important;
114
      }
115
    }
116
 
117
    .md-header {
118
      background: none;
119
      text-align: center;
120
      position: fixed;
121
      width: 100%;
122
      top: 20px;
123
    }
124
 
125
    .btn-group {
126
      float: none;
127
    }
128
 
129
    .btn {
130
      border: 0;
131
      background: none;
132
      color: #b3b3b3;
133
 
134
      &:hover,
135
      &:focus,
136
      &.active,
137
      &:active {
138
        box-shadow: none;
139
        color: #333;
140
      }
141
    }
142
 
143
    .md-fullscreen-controls {
144
      position: absolute;
145
      top: 20px;
146
      right: 20px;
147
      text-align: right;
148
      z-index: 1002;
149
      display: block;
150
      a {
151
        color: #b3b3b3;
152
        clear: right;
153
        margin: 10px;
154
        width: 30px;
155
        height: 30px;
156
        text-align: center;
157
 
158
        &:hover {
159
          color: #333;
160
          text-decoration: none;
161
        }
162
      }
163
    }
164
 
165
    .md-editor {
166
      height: 100% !important;
167
      position: relative;
168
    }
169
  }
170
 
171
  .md-fullscreen-controls {
172
    display: none;
173
  }
174
}
175
 
176
.md-nooverflow {
177
  overflow: hidden;
178
  position: fixed;
179
  width: 100%;
180
}