Blame view

bower_components/select2/docs/_sass/_examples.scss 1.86 KB
f6e211e4   Administrator   finish work part 1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
  // Examples
  //
  // Styles for the Select2 examples, largely copied
  // from Bootstrap's docs styles.
  //
  // @see https://github.com/twbs/bootstrap/blob/master/docs/assets/css/src/docs.css#L533
  
  .s2-example {
    position: relative;
    padding: 45px 15px 15px;
    margin: 0 -15px 15px;
    background-color: #fafafa;
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.05);
    border-color: #e5e5e5 #eee #eee;
    border-style: solid;
    border-width: 1px 0;
  
    &:after {
      content: "Example";
      position: absolute;
      top: 15px;
      left: 15px;
      font-size: 12px;
      font-weight: bold;
      color: #bbb;
      text-transform: uppercase;
      letter-spacing: 1px;
    }
  
    @media (min-width: 768px) {
      margin-left: 0;
      margin-right: 0;
      background-color: #fff;
      border-width: 1px;
      border-color: #eee;
      border-radius: 4px 4px 0 0;
      box-shadow: none;
    }
  }
  
  // styles for the event log in the "DOM events" section of the docs
  .s2-event-log {
    background: #002451;
    color: white;
    font-family: Menlo, 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', Monaco, Consolas, monospace;
    margin: 0 -15px 15px;
    padding: 45px 15px 15px;
    position: relative;
  
    &:after {
      content: "Event Log";
      position: absolute;
      top: 15px;
      left: 15px;
      font-size: 12px;
      font-weight: bold;
      color: #BBB;
      text-transform: uppercase;
      letter-spacing: 1px;
    }
  
    @media (min-width: 768px) {
      margin-left: 0;
      margin-right: 0;
      margin-top: -15px;
      border-width: 1px;
      border-color: #eee;
      box-shadow: none;
    }
  }
  
  .s2-example + pre,
  .s2-event-log + pre {
    margin: -15px -15px 15px;
    border-radius: 0;
    border-width: 0 0 1px;
  
    @media (min-width: 768px) {
      margin-top: -16px;
      margin-left: 0;
      margin-right: 0;
      border-width: 1px;
      border-bottom-left-radius: 4px;
      border-bottom-right-radius: 4px;
    }
  }
  
  .s2-example + .s2-event-log {
    margin-top: -15px;
  }