annotate app/assets/stylesheets/_new-paste.scss @ 389:433bc70e1781

Style up Pastes#show a bit.
author nanaya <me@myconan.net>
date Sun, 07 Jun 2015 13:05:31 +0900
parents 6cd41974d4b0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
379
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
1 #new_paste {
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
2 flex: 1;
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
3 display: flex;
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
4 flex-direction: column;
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
5
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
6 width: 100%;
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
7
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
8 #paste-form {
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
9 flex: 1 0 auto;
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
10 display: flex;
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
11 flex-direction: column;
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
12 margin-bottom: $spacing;
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
13
387
6cd41974d4b0 Style up form error.
nanaya <me@myconan.net>
parents: 379
diff changeset
14 > * {
379
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
15 flex: 1 0 auto;
387
6cd41974d4b0 Style up form error.
nanaya <me@myconan.net>
parents: 379
diff changeset
16 }
6cd41974d4b0 Style up form error.
nanaya <me@myconan.net>
parents: 379
diff changeset
17
6cd41974d4b0 Style up form error.
nanaya <me@myconan.net>
parents: 379
diff changeset
18 textarea {
379
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
19 resize: none;
387
6cd41974d4b0 Style up form error.
nanaya <me@myconan.net>
parents: 379
diff changeset
20 width: 100%;
379
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
21 }
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
22 }
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
23
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
24 #paste-control {
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
25 flex: none;
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
26
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
27 display: flex;
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
28 align-items: stretch;
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
29 justify-content: space-between;
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
30
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
31 flex-direction: column;
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
32 @media (min-width: $screen-sm) {
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
33 flex-direction: row;
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
34 }
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
35
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
36 .radio {
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
37 display: inline-flex;
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
38 align-items: center;
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
39 margin-right: $spacing;
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
40 }
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
41 .form-group {
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
42 display: flex;
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
43 flex-direction: column;
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
44 }
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
45
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
46 .form-label {
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
47 display: block;
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
48 margin-bottom: $spacing/2;
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
49 }
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
50
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
51 .inputs {
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
52 display: flex;
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
53 justify-content: space-around;
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
54 > * {
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
55 margin-right: $spacing;
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
56 flex: 1;
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
57
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
58 &:last-child {
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
59 margin-right: 0px;
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
60 }
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
61 }
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
62 &.right {
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
63 margin-top: $spacing;
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
64 min-height: $spacing * 4;
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
65 }
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
66
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
67 @media (min-width: $screen-sm) {
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
68 > * {
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
69 flex: 1 1 auto;
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
70 }
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
71
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
72 &.right {
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
73 margin-top: 0px;
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
74 > * {
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
75 margin-left: $spacing;
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
76 margin-right: 0px;
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
77 }
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
78 }
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
79 }
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
80 }
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
81 }
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents:
diff changeset
82 }