three.cad/src/react/app.css

76 lines
1.1 KiB
CSS
Raw Normal View History

2021-04-02 08:19:14 +08:00
/* @tailwind base; */
2021-04-01 16:20:50 +08:00
@tailwind utilities;
2021-03-29 02:54:05 +08:00
2021-04-08 06:50:53 +08:00
* {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
box-sizing: border-box;
}
2021-04-01 18:10:00 +08:00
body {
2021-04-02 08:19:14 +08:00
margin: 0;
height: 100%;
font-family: sans-serif;
2021-04-05 11:52:17 +08:00
overflow: hidden;
2021-04-08 06:50:53 +08:00
--topNavH: 48px;
2021-04-07 12:21:09 +08:00
--sideNavW: 200px;
2021-04-02 08:19:14 +08:00
}
#c {
2021-04-05 11:52:17 +08:00
position: absolute;
2021-04-07 12:21:09 +08:00
width: calc(100% - var(--sideNavW));
height: calc(100% - var(--topNavH));
bottom: 0;
right: 0;
2021-04-02 08:19:14 +08:00
}
2021-04-07 12:21:09 +08:00
.topNav {
position: absolute;
height: var(--topNavH);
left:0;
right:0;
top:0;
2021-04-02 08:19:14 +08:00
}
2021-04-07 12:21:09 +08:00
.sideNav {
position: absolute;
top: var(--topNavH);
left: 0;
bottom: 0;
width: var(--sideNavW);
2021-04-01 18:10:00 +08:00
}
2021-04-02 08:19:14 +08:00
2021-04-05 11:52:17 +08:00
#labels > div {
position: absolute;
border: solid 1px black;
}
2021-04-02 08:19:14 +08:00
.btn {
cursor: pointer;
@apply fill-current
bg-gray-100 text-green-600
2021-04-05 11:52:17 +08:00
hover:bg-gray-200 hover:text-green-700;
2021-04-02 08:19:14 +08:00
}
2021-04-08 06:50:53 +08:00
.tooltip {
position: fixed;
display: block;
background-color: black;
color: #fff;
text-align: center;
border-radius: 4px;
padding: 4px;
visibility: hidden;
}
.arrow {
position: absolute;
bottom: 100%;
left: 50%;
margin-left: -6px;
border: solid 6px transparent;
border-bottom-color: black;
border-top: none;
}