so://phie

outline

A web-based drawing app
git clone git://soophie.de/outline

blob: 10ad5ef889f45381002358d278bdfd6eb1186eb5 (2251 bytes)[doc][blame][raw]

1.toolbar {

2 position: fixed;

3 left: calc(50% - 360px);

4 bottom: 30px;

5 display: flex;

6

7 .bucket {

8 width: 56px;

9 height: 56px;

10 border-radius: 9999px;

11 background: #CCC;

12 margin: 8px;

13 transition: transform 0.2s;

14 box-shadow: 0 0px 8px 2px rgba(0, 0, 0, 0.05);

15 cursor: pointer;

16 transform: scale(0.9);

17 user-select: none;

18

19 &:hover {

20 transition: transform 0.2s;

21 transform: scale(1);

22 }

23

24 &.focused {

25 transform: scale(1.1);

26 }

27 }

28}

29

30.actions {

31 position: fixed;

32 top: 30px;

33 left: 30px;

34 display: flex;

35}

36

37.action {

38 position: relative;

39 width: 46px;

40 height: 46px;

41 border: none;

42 border-radius: 9999px;

43 background: transparent;

44 cursor: pointer;

45 outline: none;

46 position: fixed;

47 margin-right: 8px;

48

49 &:hover {

50 background: #ECECEC;

51 }

52

53 &::after {

54 bottom: -60%;

55 }

56}

57

58/* Tooltip */

59.tooltip {

60 position: relative;

61 display: flex;

62 justify-content: center;

63

64 &:hover {

65

66 &::before {

67 opacity: 1;

68 transition-delay: 0.6s;

69 }

70

71 &::after {

72 opacity: 1;

73 transition-delay: 0.6s;

74 }

75 }

76

77 /*

78 &::before {

79 display: flex;

80 opacity: 0;

81 content: '';

82 position: absolute;

83 width: 0;

84 height: 0;

85 top: auto;

86 bottom: ~'calc(-110% + 26px)';

87 border-left: 6px solid transparent;

88 border-right: 6px solid transparent;

89 border-top: none;

90 border-bottom: 6px solid #404040;

91 z-index: 99;

92 pointer-events: none;

93 }

94 */

95

96 &::after {

97 display: flex;

98 opacity: 0;

99 content: attr(data-title);

100 justify-content: center;

101 align-items: center;

102 position: absolute;

103 background: #212121;

104 color: white;

105 min-height: 24px;

106 padding: 0 10px;

107 border-radius: 4px;

108 font-size: 12px;

109 top: auto;

110 bottom: -90%;

111 white-space: nowrap;

112 z-index: 9999;

113 pointer-events: none;

114 }

115

116 &.up {

117

118 &::before {

119 top: ~'calc(-90% + 26px)';

120 bottom: auto;

121 border-left: 6px solid transparent;

122 border-right: 6px solid transparent;

123 border-top: 6px solid #212121;

124 border-bottom: none;

125 }

126

127 &::after {

128 top: -60%;

129 bottom: auto;

130 }

131 }

132

133 &.down {

134

135 &::before {

136 top: auto;

137 bottom: ~'calc(-90% + 26px)';

138 border-left: 6px solid transparent;

139 border-right: 6px solid transparent;

140 border-top: none;

141 border-bottom: 6px solid #212121;

142 }

143

144 &::after {

145 top: auto;

146 bottom: -60%;

147 }

148 }

149}