hotkeys.component.scss 1.62 KB
Newer Older
1
@import '_variables';
Rigel Kent's avatar
Rigel Kent committed
2
3
@import '_mixins';

4
.cfp-hotkeys-container {
Chocobozzz's avatar
Chocobozzz committed
5
6
  display: flex !important;
  align-items: center;
7
8
9
10
11
12
13
14
  position: fixed;
  overflow: auto;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  color: #333;
  font-size: 1em;
Chocobozzz's avatar
Chocobozzz committed
15
  background-color: rgba(255, 255, 255, 0.9);
16
17
18
19
20
21
22
23
24
25
}

.cfp-hotkeys-container.fade {
  z-index: -1024;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.15s linear;
}

.cfp-hotkeys-container.fade.in {
Rigel Kent's avatar
Rigel Kent committed
26
  z-index: z(hotkeys);
27
28
29
30
31
32
33
34
35
36
37
38
  visibility: visible;
  opacity: 1;
}

.cfp-hotkeys-title {
  font-weight: bold;
  text-align: center;
  font-size: 1.2em;
}

.cfp-hotkeys {
  width: 100%;
Chocobozzz's avatar
Chocobozzz committed
39
  max-height: 100%;
40
41
42
43
44
45
46
47
48
49
50
51
52
53
}

.cfp-hotkeys table {
  margin: auto;
  color: #333;
}

.cfp-content {
  display: table-cell;
  vertical-align: middle;
}

.cfp-hotkeys-keys {
  padding: 5px;
Chocobozzz's avatar
Chocobozzz committed
54
  text-align: end;
55
56
57
}

.cfp-hotkeys-key {
Chocobozzz's avatar
Chocobozzz committed
58
59
  @include margin-right(5px);

60
61
62
63
64
65
66
67
68
69
70
71
  display: inline-block;
  color: #fff;
  background-color: #333;
  border: 1px solid #333;
  border-radius: 5px;
  text-align: center;
  box-shadow: inset 0 1px 0 #666, 0 1px 0 #bbb;
  padding: 5px 9px;
  font-size: 1em;
}

.cfp-hotkeys-text {
Chocobozzz's avatar
Chocobozzz committed
72
  @include padding-left(10px);
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
  font-size: 1em;
}

.cfp-hotkeys-close {
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 2em;
  font-weight: bold;
  padding: 5px 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  min-height: 45px;
  min-width: 45px;
  text-align: center;
}

.cfp-hotkeys-close:hover {
  background-color: #fff;
  cursor: pointer;
}

95
@media all and (max-width: $mobile-view) {
96
97
98
99
100
101
102
103
104
  .cfp-hotkeys {
    font-size: 0.8em;
  }
}

@media all and (min-width: 750px) {
  .cfp-hotkeys {
    font-size: 1.2em;
  }
Chocobozzz's avatar
Chocobozzz committed
105
}