@scena/react-guides
Version:
A React Guides component that can draw ruler and manage guidelines.
113 lines (108 loc) • 1.9 kB
CSS
@import url("https://fonts.googleapis.com/css?family=Open+Sans:300,400,600&display=swap");
@import url("https://fonts.googleapis.com/css?family=Roboto:100&display=swap");
html, body {
font-family: "Open Sans", sans-serif;
position: relative;
margin: 0;
padding: 0;
height: 100%;
color: #333;
letter-spacing: 1px;
background: #f5f5f5;
font-weight: 300;
touch-action: manipulation;
}
#root, .page {
position: relative;
width: 100%;
height: 100%;
overflow: hidden;
}
a {
text-decoration: none;
color: #333;
}
.ruler {
position:absolute;
top: 0;
left: 0;
}
.ruler.horizontal {
left: 0px;
width: 100%;
height: 30px;
}
.ruler.vertical {
top: 0px;
width: 30px;
height: 100%;
}
.box {
position: relative;
width: 30px;
height: 30px;
background: #444;
box-sizing: border-box;
z-index: 21;
}
.box:before, .box:after {
position: absolute;
content: "";
background: #777;
}
.box:before {
width: 1px;
height: 100%;
left: 100%;
}
.box:after {
height: 1px;
width: 100%;
top: 100%;
}
.container {
position: relative;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
max-width: calc(100% - 60px);
width: 100%;
}
.badges {
padding: 10px;
}
.badges img {
height: 20px;
margin: 0px 2px;
}
.buttons {
text-align: center;
margin: 0;
padding: 10px;
}
.buttons a {
margin: 0;
position: relative;
text-decoration: none;
color: #333;
border: 1px solid #333;
padding: 12px 30px;
min-width: 140px;
text-align: center;
display: inline-block;
box-sizing: border-box;
margin: 5px;
transition: all ease 0.5s;
}
.buttons a:hover {
background: #333;
color: #fff;
}
p {
padding: 0;
margin: 0;
}
.dragit {
font-weight: bold;
}