Blame view

node_modules/bootstrap-vue/src/components/calendar/_calendar.scss 1.42 KB
4cd4fd28   郭伟龙   feat: 初始化项目
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
// BCalendar custom styles

.b-calendar {
  display: inline-flex;

  .b-calendar-inner {
    // Prevent calendar from going below this width
    min-width: 250px;
  }

  .b-calendar-header,
  .b-calendar-nav {
    margin-bottom: 0.25rem;
  }

  .b-calendar-nav .btn {
    padding: 0.25rem;
  }

  output {
    padding: 0.25rem;
    font-size: 80%;

    &.readonly {
      background-color: $input-disabled-bg;
      opacity: 1;
    }
  }

  .b-calendar-footer {
    margin-top: 0.5rem;
  }

  .b-calendar-grid {
    padding: 0;
    margin: 0;
    // Easy rounded corners on contained elements,
    // specifically the footer of the calendar grid
    overflow: hidden;

    .row {
      // Prevent grid rows from wrapping
      flex-wrap: nowrap;
    }
  }

  .b-calendar-grid-caption {
    padding: 0.25rem;
  }

  .b-calendar-grid-body {
    .col[data-date] {
      // We hard code the sizes in `px` to fit
      // correctly on small mobile device screens
      .btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
        line-height: 1;
        margin: 3px auto;
        padding: 9px 0;
      }
    }
  }

  // Style to get around Bootstrap v4.4 bug
  // with hand cursor on disabled buttons
  // As well, when a button is still focusable, but is
  // `aria-disabled` we want `pointer-events: none`
  .btn {
    &:disabled,
    &.disabled,
    &[aria-disabled="true"] {
      cursor: default;
      pointer-events: none;
    }
  }
}