Skip to content

Commit

Permalink
css
Browse files Browse the repository at this point in the history
  • Loading branch information
CrazyBoyM committed May 1, 2020
1 parent f41c8be commit f9e6c3b
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 83 deletions.
80 changes: 80 additions & 0 deletions css/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
body{
text-align: center;
background-color: #282c34;
}
.container{
width: 60%;
margin: 10% auto 0;
padding: 2% 5%;
background-color: #fff;
border-radius: 10px;
}
.set-wifi{
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
flex: 1 1 auto;
flex-wrap: wrap;
padding: 20px;
}
.set-wifi .row{
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
flex: 1 1 auto;
flex-wrap: wrap;
padding: 10px;
font-weight: bold;
}
.set-wifi .row input{
margin-left: 10px;
padding: 6px 10px;
color: #000;
font-weight: bold;
border-color: #000;
border-radius: 10px;
outline: none;
}
.set-wifi button{
margin: 10px;
padding: 5px 50px;
color: #000;
font-size: 18px;
font-weight: bold;
background-color: transparent;
border-color: #000;
border-radius: 5px;
outline: none;
}
.set-wifi button:hover,.set-wifi .row input:focus{
color: blue;
border-color: blue;
}
.res-info{
height:100px;
width: 233px;
margin: 18px 0 10px 0;
padding: 6px 10px;
color: #000;
font-weight: bold;
border-color: #000;
border-radius: 10px;
outline: none;
}

@media screen and (max-width: 40em){
.container{
width: 90%;
}
.set-wifi button{
margin: 10px 0 0 0;
}
.set-wifi .row span{
padding: 3px 0;
}
.set-wifi .row input{
margin-left: 0;
}
}
85 changes: 2 additions & 83 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,88 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>R1免APP配网</title>
<style>
body{
text-align: center;
background-color: #282c34;
}
.container{
width: 60%;
margin: 10% auto 0;
padding: 2% 5%;
background-color: #fff;
border-radius: 10px;
}
.set-wifi{
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
flex: 1 1 auto;
flex-wrap: wrap;
padding: 20px;
}
.set-wifi .row{
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
flex: 1 1 auto;
flex-wrap: wrap;
padding: 10px;
font-weight: bold;
}
.set-wifi .row input{
margin-left: 10px;
padding: 6px 10px;
color: #000;
font-weight: bold;
border-color: #000;
border-radius: 10px;
outline: none;
}
.set-wifi button{
margin: 10px;
padding: 5px 50px;
color: #000;
font-size: 18px;
font-weight: bold;
background-color: transparent;
border-color: #000;
border-radius: 5px;
outline: none;
}
.set-wifi button:hover,.set-wifi .row input:focus{
color: blue;
border-color: blue;
}
.res-info{
height:100px;
width: 233px;
margin: 18px 0 10px 0;
padding: 6px 10px;
color: #000;
font-weight: bold;
border-color: #000;
border-radius: 10px;
outline: none;
}

@media screen and (max-width: 40em){
.container{
width: 90%;
}
.set-wifi button{
margin: 10px 0 0 0;
}
.set-wifi .row span{
padding: 3px 0;
}
.set-wifi .row input{
margin-left: 0;
}
}
</style>
<link href="https://cdn.jsdelivr.net/gh/CrazyBoyM/R1ConfigWifi/css/mian.css">
</head>
<body>
<div class="container">
Expand All @@ -107,7 +26,7 @@ <h1>R1 配网控制台</h1>
</div>
<footer>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js" integrity="sha256-xNzN2a4ltkB44Mc/Jz3pT4iU1cmeR0FkXs4pru/JxaQ=" crossorigin="anonymous"></script>
<script src="/js/main.js"></script>
<script src="https://cdn.jsdelivr.net/gh/CrazyBoyM/R1ConfigWifi/js/main.js"></script>
</footer>
</body>
</html>
Expand Down

0 comments on commit f9e6c3b

Please sign in to comment.