Fixed styles for carlogs homepage.

parent 271e5ecc
No preview for this file type
No preview for this file type
.form-title { .form-title {
font-family: 'Raleway'; font-family: 'Raleway';
} }
.new-log {
position:absolute;
bottom:0;
right:0;
box-sizing: border-box;
padding: 20px 22px;
background: #fe9900;
color: black !important;
text-decoration: none;
margin: 30px;
transition: 0.3s ease-in-out;
border-radius: 50%;
box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
}
.new-log:hover {
cursor: pointer;
background: black;
color: white !important;
}
nav {
padding: 20px;
display: flex;
justify-content: space-between;
align-content: center;
}
body { body {
-webkit-font-feature-settings: "lnum"; -webkit-font-feature-settings: "lnum";
font-family: 'Raleway'; font-family: 'Raleway';
background: rgba(20,20,20,0.9); background: rgba(20,20,20,0.9) !important;
} }
.card {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
max-width: 400px;
border: solid 1px;
padding: 20px;
margin: 10px;
box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
background: white;
}
.card label {
margin-top: 10px;
}
.form-container { .form-container {
display: block; display: block;
margin: 0 auto; margin: 0 auto;
margin-top: 20px; margin-top: 30px;
background: white; background: white;
box-sizing: border-box; box-sizing: border-box;
padding: 10px 30px 21px; padding: 10px 30px 21px;
...@@ -21,8 +67,8 @@ body { ...@@ -21,8 +67,8 @@ body {
} }
input { input {
box-sizing: border-box; box-sizing: border-box;
margin-top: 10px; margin-top: 10px !important;
margin-bottom: 15px; margin-bottom: 15px !important;
padding: 10px; padding: 10px;
font-size: 13px; font-size: 13px;
font-family: Raleway; font-family: Raleway;
...@@ -30,13 +76,13 @@ input { ...@@ -30,13 +76,13 @@ input {
label { label {
font-family: Raleway; font-family: Raleway;
display: block; display: block !important;
} }
.select { .select {
position: relative; position: relative;
display: block; display: block;
margin-bottom: 15px; margin-bottom: 15px !important;
width: 300px; width: 300px;
} }
......
<div style="margin:0px; padding:0px; height:100vh; width:100vw; background:white; background-size:cover; position:absolute;overflow:scroll;">
<div style="padding:20px; margin:20px; border:solid 1px; background-color:rgba(20,20,20,0.9); color:rgba(255,255,255,0.8)">
<center>
<div style="font-size:70px; color:rgba(255,255,255,0.8)">
Park <div style="display:inline; color:black; background:#fe9900; border-radius:5px; font-size:70px; padding:1px 5px;">hub</div>
</div>
<br>
<a href="/carlogs/new" style="color:rgba(255,255,255,0.6)">Add new Log</a>
<nav>
<div class="logo">
<div style="font-size:50px; font-weight: bold; color:white;">
Park <div style="display:inline; color:black; background:#fe9900; border-radius:5px; font-size:50px; padding:1px 5px;">hub</div>
</div>
</div>
</nav>
<a class="new-log" href="/carlogs/new"><span class="glyphicon glyphicon-plus"></span></a>
</center>
<hr> <hr>
<% @cars.each do |car|%> <% @cars.each do |car|%>
<div style="display:inline-block; border: solid 1px; padding:20px; margin:10px;"> <div class="card">
Plate Number: <%=car.plate_number=%>
<br> <div class="column">
Color: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%=car.color=%> <label>Brand</label><%=car.brand=%>
<br> <label>Plate Number</label><%=car.plate_number=%>
Created at: <%=car.created_at=%>
<br> <label>Color</label><%=car.color=%>
Time in: &nbsp; &nbsp;&nbsp;&nbsp;<%=car.time_in=%> </div>
<br> <div class="column">
Time Out: &nbsp;&nbsp;<%=car.created_at=%> <label>Created</label> <%=car.created_at=%>
<br> <br>
<a href="/carlogs/delete/<%=car.id=%>" style="color:rgba(255,255,255,0.6)">Delete</a> <label>Time In</label><%=car.time_in=%>
<label>Time Out</label><%=car.created_at=%>
</div> </div>
<%end%>
<a href="/carlogs/delete/<%=car.id=%>" style="color:black; margin: 10px;">Delete</a>
</div> </div>
</div> <%end%>
\ No newline at end of file
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
<%= csrf_meta_tags %> <%= csrf_meta_tags %>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
</head> </head>
<body> <body>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment