Showing
20 changed files
with
527 additions
and
72 deletions
... | @@ -4,6 +4,9 @@ This project was bootstrapped with [Create React App](https://github.com/faceboo | ... | @@ -4,6 +4,9 @@ This project was bootstrapped with [Create React App](https://github.com/faceboo |
4 | 4 | ||
5 | In the project directory, you can run: | 5 | In the project directory, you can run: |
6 | 6 | ||
7 | +### `npm install` | ||
8 | +To run this app, first needed 'npm install' | ||
9 | + | ||
7 | ### `npm start` | 10 | ### `npm start` |
8 | 11 | ||
9 | Runs the app in the development mode.<br /> | 12 | Runs the app in the development mode.<br /> |
... | @@ -11,58 +14,3 @@ Open [http://localhost:3000](http://localhost:3000) to view it in the browser. | ... | @@ -11,58 +14,3 @@ Open [http://localhost:3000](http://localhost:3000) to view it in the browser. |
11 | 14 | ||
12 | The page will reload if you make edits.<br /> | 15 | The page will reload if you make edits.<br /> |
13 | You will also see any lint errors in the console. | 16 | You will also see any lint errors in the console. |
14 | - | ||
15 | -### `npm test` | ||
16 | - | ||
17 | -Launches the test runner in the interactive watch mode.<br /> | ||
18 | -See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. | ||
19 | - | ||
20 | -### `npm run build` | ||
21 | - | ||
22 | -Builds the app for production to the `build` folder.<br /> | ||
23 | -It correctly bundles React in production mode and optimizes the build for the best performance. | ||
24 | - | ||
25 | -The build is minified and the filenames include the hashes.<br /> | ||
26 | -Your app is ready to be deployed! | ||
27 | - | ||
28 | -See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. | ||
29 | - | ||
30 | -### `npm run eject` | ||
31 | - | ||
32 | -**Note: this is a one-way operation. Once you `eject`, you can’t go back!** | ||
33 | - | ||
34 | -If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. | ||
35 | - | ||
36 | -Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. | ||
37 | - | ||
38 | -You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. | ||
39 | - | ||
40 | -## Learn More | ||
41 | - | ||
42 | -You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). | ||
43 | - | ||
44 | -To learn React, check out the [React documentation](https://reactjs.org/). | ||
45 | - | ||
46 | -### Code Splitting | ||
47 | - | ||
48 | -This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting | ||
49 | - | ||
50 | -### Analyzing the Bundle Size | ||
51 | - | ||
52 | -This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size | ||
53 | - | ||
54 | -### Making a Progressive Web App | ||
55 | - | ||
56 | -This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app | ||
57 | - | ||
58 | -### Advanced Configuration | ||
59 | - | ||
60 | -This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration | ||
61 | - | ||
62 | -### Deployment | ||
63 | - | ||
64 | -This section has moved here: https://facebook.github.io/create-react-app/docs/deployment | ||
65 | - | ||
66 | -### `npm run build` fails to minify | ||
67 | - | ||
68 | -This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify | ... | ... |
... | @@ -25,7 +25,7 @@ | ... | @@ -25,7 +25,7 @@ |
25 | work correctly both with client-side routing and a non-root public URL. | 25 | work correctly both with client-side routing and a non-root public URL. |
26 | Learn how to configure a non-root public URL by running `npm run build`. | 26 | Learn how to configure a non-root public URL by running `npm run build`. |
27 | --> | 27 | --> |
28 | - <title>React App</title> | 28 | + <title>Video Emergency Analysis</title> |
29 | </head> | 29 | </head> |
30 | <body> | 30 | <body> |
31 | <noscript>You need to enable JavaScript to run this app.</noscript> | 31 | <noscript>You need to enable JavaScript to run this app.</noscript> | ... | ... |
No preview for this file type
This diff could not be displayed because it is too large.
No preview for this file type
No preview for this file type
This diff is collapsed. Click to expand it.
No preview for this file type
No preview for this file type
This diff could not be displayed because it is too large.
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
This diff could not be displayed because it is too large.
File mode changed
No preview for this file type
No preview for this file type
1 | import React, { PureComponent } from 'react'; | 1 | import React, { PureComponent } from 'react'; |
2 | import { connect } from 'react-redux'; | 2 | import { connect } from 'react-redux'; |
3 | import Widget from '../../components/Widget/Widget'; | 3 | import Widget from '../../components/Widget/Widget'; |
4 | +import { | ||
5 | + Row, | ||
6 | + Col, | ||
7 | + Button, | ||
8 | + Form, | ||
9 | + FormGroup, | ||
10 | + Label, | ||
11 | +} from 'reactstrap'; | ||
12 | +import s from './Subject.module.scss'; | ||
4 | 13 | ||
5 | class Subject extends PureComponent { | 14 | class Subject extends PureComponent { |
15 | + constructor(props) { | ||
16 | + super(props); | ||
17 | + this.onChangeInputImage = this.onChangeInputImage.bind(this); | ||
18 | + this.state = { | ||
19 | + defaultSelectVal: 'Andromeda', | ||
20 | + imageFiles: [], | ||
21 | + }; | ||
22 | + } | ||
23 | + | ||
24 | + onChangeInputImage(e) { | ||
25 | + const files = []; | ||
26 | + const reader = new FileReader(); | ||
27 | + files.push(e.target.files[0]); | ||
28 | + reader.onloadend = () => { | ||
29 | + files[0].preview = reader.result; | ||
30 | + files[0].toUpload = true; | ||
31 | + this.setState({ | ||
32 | + imageFiles: files, | ||
33 | + }); | ||
34 | + }; | ||
35 | + reader.readAsDataURL(e.target.files[0]); | ||
36 | + } | ||
37 | + | ||
6 | async componentDidUpdate() { | 38 | async componentDidUpdate() { |
7 | const isReceivingData = true; | 39 | const isReceivingData = true; |
8 | } | 40 | } |
9 | 41 | ||
10 | render() { | 42 | render() { |
11 | const isReceivingData = true; | 43 | const isReceivingData = true; |
12 | - | ||
13 | const display = isReceivingData ? 'none' : 'block'; | 44 | const display = isReceivingData ? 'none' : 'block'; |
14 | const style = { | 45 | const style = { |
15 | height: '1200px', | 46 | height: '1200px', |
16 | display: display | 47 | display: display |
17 | }; | 48 | }; |
18 | - | 49 | + console.log(this.state.imageFiles) |
19 | return ( | 50 | return ( |
20 | - <div> | 51 | + <div className={s.root}> |
21 | - <h1 className="page-title mb-xlg mt-lg">Photo <small> registration</small></h1> | 52 | + <h1 className="page-title mb-xlg mt-lg">Photo <small>Upload</small></h1> |
22 | - <Widget | 53 | + <Row> |
23 | - title={<h5><span className="fw-semi-bold">registrate photos</span></h5>} | 54 | + <Col lg="6" md={12}> |
24 | - fetchingData={true}> | 55 | + <Widget |
25 | - <div> | 56 | + > |
26 | - <div className="text-center"style={style} /> | 57 | + <Form> |
27 | - <p className="fs-mini text-muted"> | 58 | + <blockquote className="blockquote blockquote-reverse"> |
28 | - Stacked charts are excellent to track some dynamics within declared categories. An example of this | 59 | + <p>침입자로 분류하지 않을 방문자의 사진을 업로드 하세요.</p> |
29 | - can be seen above. To create a Stacked Bar chart use <code>Bar(options)</code> and | 60 | + </blockquote> |
30 | - set <code>stacked</code>, option to true. | 61 | + |
31 | - </p> | 62 | + <FormGroup row> |
32 | - </div> | 63 | + <Label md="2" className="text-md-right"> |
33 | - </Widget> | 64 | + Image upload |
65 | + </Label> | ||
66 | + <Col md="8"> | ||
67 | + <input | ||
68 | + accept="image/*" onChange={this.onChangeInputImage} | ||
69 | + id="fileupload2" | ||
70 | + type="file" name="file" className="display-none" | ||
71 | + /> | ||
72 | + <div className="fileinput fileinput-new fileinput-fix"> | ||
73 | + <div className="fileinput-new thumbnail"> | ||
74 | + {this.state.imageFiles.length > 0 ? <div> | ||
75 | + {this.state.imageFiles.map((file, idx) => ( | ||
76 | + <img alt="..." src={file.preview} key={`img-id-${idx.toString()}`} />))} | ||
77 | + </div> : <img | ||
78 | + alt="..." | ||
79 | + src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOTEiIGhlaWdodD0iMTQxIj48cmVjdCB3aWR0aD0iMTkxIiBoZWlnaHQ9IjE0MSIgZmlsbD0iI2VlZSIvPjx0ZXh0IHRleHQtYW5jaG9yPSJtaWRkbGUiIHg9Ijk1LjUiIHk9IjcwLjUiIHN0eWxlPSJmaWxsOiNhYWE7Zm9udC13ZWlnaHQ6Ym9sZDtmb250LXNpemU6MTJweDtmb250LWZhbWlseTpBcmlhbCxIZWx2ZXRpY2Esc2Fucy1zZXJpZjtkb21pbmFudC1iYXNlbGluZTpjZW50cmFsIj4xOTF4MTQxPC90ZXh0Pjwvc3ZnPg==" | ||
80 | + />} | ||
81 | + </div> | ||
82 | + </div> | ||
83 | + <div> | ||
84 | + <Button type="button" color="default"><Label>Select image</Label></Button> | ||
85 | + </div> | ||
86 | + {/* <div> | ||
87 | + <Button type="button" color="default"><Label for="fileupload2">Select | ||
88 | + image</Label></Button> | ||
89 | + </div> */} | ||
90 | + </Col> | ||
91 | + </FormGroup> | ||
92 | + </Form> | ||
93 | + </Widget> | ||
94 | + </Col> | ||
95 | + </Row> | ||
34 | </div> | 96 | </div> |
35 | ); | 97 | ); |
36 | } | 98 | } | ... | ... |
1 | +@import '../../styles/app'; | ||
2 | + | ||
3 | +:global { | ||
4 | +// @import '../../../../node_modules/react-draft-wysiwyg/dist/react-draft-wysiwyg'; | ||
5 | +// @import '../../../../node_modules/react-select2-wrapper/css/select2'; | ||
6 | +// @import '../../../../node_modules/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox'; | ||
7 | +// @import '../../../../node_modules/react-datetime/css/react-datetime'; | ||
8 | +// @import '../../../../node_modules/rc-color-picker/dist/rc-color-picker'; | ||
9 | +// @import '../../../../node_modules/bootstrap-slider/dist/css/bootstrap-slider'; | ||
10 | +// @import '../../../../node_modules/jasny-bootstrap/dist/css/jasny-bootstrap'; | ||
11 | +// @import '../../../../node_modules/react-mde/lib/styles/scss/react-mde-all'; | ||
12 | +} | ||
13 | + | ||
14 | +.autogrow { | ||
15 | + overflow: hidden; | ||
16 | + resize: none; | ||
17 | +} | ||
18 | + | ||
19 | +.wysiwygWrapper { | ||
20 | + border: 1px solid #ccc !important; | ||
21 | + overflow: visible; | ||
22 | + height: 270px; | ||
23 | +} | ||
24 | + | ||
25 | +.wysiwygToolbar { | ||
26 | + color: $gray-800 !important; | ||
27 | + background-color: #ddd !important; | ||
28 | + border-color: transparent !important; | ||
29 | + | ||
30 | + :global { | ||
31 | + .rdw-option-wrapper { | ||
32 | + font-family: 'Open Sans', sans-serif; | ||
33 | + font-size: 14px; | ||
34 | + height: 30px; | ||
35 | + min-width: 30px; | ||
36 | + margin: 0; | ||
37 | + background: #f8f8f8; | ||
38 | + } | ||
39 | + | ||
40 | + .rdw-dropdown-wrapper { | ||
41 | + background: #f8f8f8; | ||
42 | + } | ||
43 | + } | ||
44 | +} | ||
45 | + | ||
46 | +.wysiwygEditor { | ||
47 | + position: relative !important; | ||
48 | + overflow: hidden !important; | ||
49 | + height: 150px; | ||
50 | + line-height: 0.1; | ||
51 | +} | ||
52 | + | ||
53 | +.select2 { | ||
54 | + :global { | ||
55 | + .select2-container { | ||
56 | + width: 100% !important; | ||
57 | + } | ||
58 | + | ||
59 | + .select2-selection--single { | ||
60 | + border-color: $input-border-color; | ||
61 | + | ||
62 | + &, | ||
63 | + & :global .select2-selection__arrow { | ||
64 | + height: $input-height; | ||
65 | + } | ||
66 | + | ||
67 | + & :global .select2-selection__rendered { | ||
68 | + line-height: $input-height; | ||
69 | + } | ||
70 | + } | ||
71 | + } | ||
72 | +} | ||
73 | + | ||
74 | +.root { | ||
75 | + :global { | ||
76 | + /* | ||
77 | + * Switchery. | ||
78 | + */ | ||
79 | + | ||
80 | + .abc-checkbox, | ||
81 | + .abc-radio { | ||
82 | + .form-check-input { | ||
83 | + position: relative; | ||
84 | + margin: 0; | ||
85 | + } | ||
86 | + } | ||
87 | + | ||
88 | + .display-inline-block { | ||
89 | + display: inline-block; | ||
90 | + } | ||
91 | + | ||
92 | + .display-none { | ||
93 | + display: none; | ||
94 | + } | ||
95 | + | ||
96 | + .switch { | ||
97 | + box-sizing: content-box; | ||
98 | + } | ||
99 | + | ||
100 | + .switch input { | ||
101 | + display: none; | ||
102 | + } | ||
103 | + | ||
104 | + .switch i { | ||
105 | + display: inline-block; | ||
106 | + cursor: pointer; | ||
107 | + padding-right: 20px; | ||
108 | + transition: all ease 0.2s; | ||
109 | + -webkit-transition: all ease 0.2s; | ||
110 | + border-radius: 20px; | ||
111 | + box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.5); | ||
112 | + } | ||
113 | + | ||
114 | + .switch i::before { | ||
115 | + display: block; | ||
116 | + content: ''; | ||
117 | + width: 30px; | ||
118 | + height: 30px; | ||
119 | + padding: 1px; | ||
120 | + border-radius: 20px; | ||
121 | + background: white; | ||
122 | + box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); | ||
123 | + } | ||
124 | + | ||
125 | + .switch :checked + i { | ||
126 | + padding-right: 0; | ||
127 | + padding-left: 20px; | ||
128 | + background: rgb(100, 189, 99); | ||
129 | + } | ||
130 | + | ||
131 | + /* Datepicker */ | ||
132 | + | ||
133 | + .datepicker { | ||
134 | + .input-group-addon { | ||
135 | + display: inline-block; | ||
136 | + position: relative; | ||
137 | + top: -2px; | ||
138 | + left: -2px; | ||
139 | + } | ||
140 | + | ||
141 | + i.glyphicon { | ||
142 | + vertical-align: top; | ||
143 | + } | ||
144 | + | ||
145 | + .rdt { | ||
146 | + display: inline-block; | ||
147 | + } | ||
148 | + } | ||
149 | + | ||
150 | + /* slider */ | ||
151 | + | ||
152 | + $slider-line-height: 8px; | ||
153 | + $slider-handle-size: 26px; | ||
154 | + | ||
155 | + .slider { | ||
156 | + display: inline-block; | ||
157 | + vertical-align: middle; | ||
158 | + position: relative; | ||
159 | + | ||
160 | + .slider-handle { | ||
161 | + position: absolute; | ||
162 | + width: $slider-handle-size; | ||
163 | + height: $slider-handle-size; | ||
164 | + background: $white; | ||
165 | + border: 0 solid transparent; | ||
166 | + | ||
167 | + @include box-shadow(inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 3px rgba(0, 0, 0, 5)); | ||
168 | + | ||
169 | + &:focus { | ||
170 | + outline: 0; | ||
171 | + } | ||
172 | + | ||
173 | + &.round { | ||
174 | + border-radius: 50%; | ||
175 | + } | ||
176 | + | ||
177 | + &.triangle { | ||
178 | + background: transparent none; | ||
179 | + } | ||
180 | + } | ||
181 | + | ||
182 | + &.slider-horizontal { | ||
183 | + width: 210px; | ||
184 | + height: $slider-line-height; | ||
185 | + | ||
186 | + .slider-track { | ||
187 | + height: $slider-line-height/2; | ||
188 | + width: 100%; | ||
189 | + margin-top: -$slider-line-height/4; | ||
190 | + top: 50%; | ||
191 | + left: 0; | ||
192 | + } | ||
193 | + | ||
194 | + .slider-selection { | ||
195 | + height: 100%; | ||
196 | + top: 0; | ||
197 | + bottom: 0; | ||
198 | + } | ||
199 | + | ||
200 | + .slider-handle { | ||
201 | + margin-left: -$slider-handle-size/2; | ||
202 | + margin-top: -$slider-handle-size*3/8; | ||
203 | + | ||
204 | + &.triangle { | ||
205 | + border-width: 0 $slider-line-height/2 $slider-line-height/2 $slider-line-height/2; | ||
206 | + width: 0; | ||
207 | + height: 0; | ||
208 | + border-bottom-color: #0480be; | ||
209 | + margin-top: 0; | ||
210 | + } | ||
211 | + } | ||
212 | + } | ||
213 | + | ||
214 | + &.slider-vertical { | ||
215 | + height: 210px; | ||
216 | + width: $slider-line-height; | ||
217 | + | ||
218 | + .slider-track { | ||
219 | + width: $slider-line-height/2; | ||
220 | + height: 100%; | ||
221 | + margin-left: -$slider-line-height/4; | ||
222 | + left: 50%; | ||
223 | + top: 0; | ||
224 | + } | ||
225 | + | ||
226 | + .slider-selection { | ||
227 | + width: 100%; | ||
228 | + left: 0; | ||
229 | + top: 0; | ||
230 | + bottom: 0; | ||
231 | + } | ||
232 | + | ||
233 | + .slider-handle { | ||
234 | + margin-left: -$slider-handle-size*3/8; | ||
235 | + margin-top: -$slider-handle-size/2; | ||
236 | + | ||
237 | + &.triangle { | ||
238 | + border-width: $slider-line-height/2 0 $slider-line-height/2 $slider-line-height/2; | ||
239 | + width: 1px; | ||
240 | + height: 1px; | ||
241 | + border-left-color: #0480be; | ||
242 | + margin-left: 0; | ||
243 | + } | ||
244 | + } | ||
245 | + } | ||
246 | + | ||
247 | + &.slider-disabled { | ||
248 | + .slider-handle { | ||
249 | + // @include gradient-y(#dfdfdf, #bebebe); | ||
250 | + } | ||
251 | + | ||
252 | + .slider-track { | ||
253 | + @include gradient-y(#e5e5e5, #e9e9e9); | ||
254 | + | ||
255 | + cursor: not-allowed; | ||
256 | + } | ||
257 | + } | ||
258 | + | ||
259 | + input { | ||
260 | + display: none; | ||
261 | + } | ||
262 | + | ||
263 | + .tooltip-inner { | ||
264 | + white-space: nowrap; | ||
265 | + } | ||
266 | + } | ||
267 | + | ||
268 | + .slider-selection { | ||
269 | + position: absolute; | ||
270 | + background: theme-color('primary'); | ||
271 | + | ||
272 | + @include box-shadow(inset 0 -1px 0 rgba(0, 0, 0, 0.15)); | ||
273 | + | ||
274 | + box-sizing: border-box; | ||
275 | + border-radius: $border-radius; | ||
276 | + } | ||
277 | + | ||
278 | + .slider-danger .slider .slider-selection { | ||
279 | + background: theme-color('danger'); // $brand-danger; | ||
280 | + } | ||
281 | + | ||
282 | + .slider-success .slider .slider-selection { | ||
283 | + background: theme-color('success'); // $brand-success; | ||
284 | + } | ||
285 | + | ||
286 | + .slider-warning .slider .slider-selection { | ||
287 | + background: theme-color('warning'); // $brand-warning; | ||
288 | + } | ||
289 | + | ||
290 | + .slider-info .slider .slider-selection { | ||
291 | + background: theme-color('info'); // $brand-info; | ||
292 | + } | ||
293 | + | ||
294 | + .slider-inverse .slider .slider-selection { | ||
295 | + background: $gray-700; // $gray; | ||
296 | + } | ||
297 | + | ||
298 | + .slider-track { | ||
299 | + position: absolute; | ||
300 | + cursor: pointer; | ||
301 | + border-radius: $border-radius; | ||
302 | + | ||
303 | + @include gradient-y(#eee, #f8f8f8); | ||
304 | + @include box-shadow(inset 0 1px 2px rgba(0, 0, 0, 0.1)); | ||
305 | + } | ||
306 | + | ||
307 | + /* file input */ | ||
308 | + | ||
309 | + .fileinput.fileinput-new { | ||
310 | + .thumbnail { | ||
311 | + padding: $thumbnail-padding; | ||
312 | + line-height: $line-height-base; | ||
313 | + background-color: $thumbnail-bg; | ||
314 | + border: $thumbnail-border-width solid $thumbnail-border-color; | ||
315 | + border-radius: $thumbnail-border-radius; | ||
316 | + transition: all 0.2s ease-in-out; | ||
317 | + | ||
318 | + @include box-shadow(0 1px 2px rgba(0, 0, 0, 0.075)); | ||
319 | + } | ||
320 | + | ||
321 | + &.fileinput-fix { | ||
322 | + width: 200px; | ||
323 | + height: 150px; | ||
324 | + } | ||
325 | + } | ||
326 | + | ||
327 | + .btn { | ||
328 | + label { | ||
329 | + margin-bottom: 0; | ||
330 | + } | ||
331 | + } | ||
332 | + | ||
333 | + .fileinput-preview.fileinput-exists { | ||
334 | + border: 1px solid $input-border-color; | ||
335 | + border-radius: $border-radius; | ||
336 | + padding: 5px; | ||
337 | + } | ||
338 | + | ||
339 | + .fileinput.input-group { | ||
340 | + display: flex; | ||
341 | + } | ||
342 | + | ||
343 | + .fileinput-new.input-group .btn-file, | ||
344 | + .fileinput-new .input-group .btn-file { | ||
345 | + border-radius: 0 $border-radius $border-radius 0; | ||
346 | + | ||
347 | + &.btn-xs, | ||
348 | + &.btn-sm { | ||
349 | + border-radius: 0 $border-radius-sm $border-radius-sm 0; | ||
350 | + } | ||
351 | + | ||
352 | + &.btn-lg { | ||
353 | + border-radius: 0 $border-radius-lg $border-radius-lg 0; | ||
354 | + } | ||
355 | + } | ||
356 | + | ||
357 | + .form-group.has-warning .fileinput { | ||
358 | + .fileinput-preview { | ||
359 | + color: #fff; | ||
360 | + } | ||
361 | + | ||
362 | + .thumbnail { | ||
363 | + border-color: theme-color('warning'); | ||
364 | + } | ||
365 | + } | ||
366 | + | ||
367 | + .form-group.has-error .fileinput { | ||
368 | + .fileinput-preview { | ||
369 | + color: #fff; | ||
370 | + } | ||
371 | + | ||
372 | + .thumbnail { | ||
373 | + border-color: theme-color('danger'); | ||
374 | + } | ||
375 | + } | ||
376 | + | ||
377 | + .form-group.has-success .fileinput { | ||
378 | + .fileinput-preview { | ||
379 | + color: #fff; | ||
380 | + } | ||
381 | + | ||
382 | + .thumbnail { | ||
383 | + border-color: theme-color('success'); | ||
384 | + } | ||
385 | + } | ||
386 | + | ||
387 | + .btn-label { | ||
388 | + background: transparent; | ||
389 | + left: 2px; | ||
390 | + padding: 1px 6px; | ||
391 | + } | ||
392 | + | ||
393 | + // Opposite alignment of blockquote | ||
394 | + .blockquote { | ||
395 | + padding: ($spacer / 2) $spacer; | ||
396 | + margin-bottom: $spacer; | ||
397 | + font-size: $blockquote-font-size; | ||
398 | + border-left: 0.25rem solid $gray-300; | ||
399 | + } | ||
400 | + | ||
401 | + .blockquote footer { | ||
402 | + display: block; | ||
403 | + font-size: 80%; // back to default font-size | ||
404 | + color: $blockquote-small-color; | ||
405 | + | ||
406 | + &::before { | ||
407 | + content: '\2014 \00A0'; // em dash, nbsp | ||
408 | + } | ||
409 | + } | ||
410 | + | ||
411 | + .blockquote-reverse { | ||
412 | + padding-right: $spacer; | ||
413 | + padding-left: 0; | ||
414 | + text-align: right; | ||
415 | + border-right: 0.25rem solid $gray-300; | ||
416 | + border-left: 0; | ||
417 | + } | ||
418 | + | ||
419 | + .blockquote-reverse footer { | ||
420 | + &::before { | ||
421 | + content: ''; | ||
422 | + } | ||
423 | + | ||
424 | + &::after { | ||
425 | + content: '\00A0 \2014'; // nbsp, em dash | ||
426 | + } | ||
427 | + } | ||
428 | + } | ||
429 | +} | ||
430 | + | ||
431 | +.dropzone { | ||
432 | + width: 100%; | ||
433 | + text-align: center; | ||
434 | + padding: 40px 10px; | ||
435 | + height: 200px; | ||
436 | + border: 2px dashed #ccc; | ||
437 | + | ||
438 | + @include border-radius($border-radius); | ||
439 | + | ||
440 | + img { | ||
441 | + max-height: 100px; | ||
442 | + max-width: 150px; | ||
443 | + border-radius: 5px; | ||
444 | + } | ||
445 | +} |
-
Please register or login to post a comment