configure htmlHint and stylelint to use tab indentation,

fix html and css linting issues
This commit is contained in:
Arthur Lu 2022-11-21 03:50:54 +00:00
parent eed39f580f
commit b24b1110f6
9 changed files with 383 additions and 390 deletions

View File

@ -1,4 +1,4 @@
{
"attr-value-not-empty": false,
"space-tab-mixed-disabled": false
"space-tab-mixed-disabled": "tab"
}

View File

@ -1,4 +1,7 @@
{
"extends": "stylelint-config-standard",
"ignore": ["inside-parens", "param", "value"]
"ignore": ["inside-parens", "param", "value"],
"rules":{
"indentation": "tab"
}
}

View File

@ -17,22 +17,13 @@
<link rel="stylesheet" href="./static/CreatePage.css" />
<link rel="icon" href="./assets/images/icons/favicon.ico">
<script src="./assets/scripts/CreatePage.js" type="module"></script>
</head>
<body>
<input type="button" value="Home" id="home-btn" onclick="window.location.assign('./index.html')">
<div class ="Top-Bar">
<div class ="top-bar">
<img src ="./assets/images/icons/Logo.png" alt="logo" />
<h1> Food Journal </h1>
<!--
<form id="form">
<input type='search' id="seaching" name="searchBar" placeholder="Search journal...">
<button class="click" type="search">
Search
</button>
</form>
--->
</div>
<div class="journal-form">
<h1>New Entry </h1>

View File

@ -16,10 +16,9 @@
<!-- <link rel="stylesheet" href="/static/reset.css" /> -->
<link rel="stylesheet" href="./static/ReviewDetails.css" />
<script src="assets/scripts/ReviewDetails.js" type="module"></script>
</head>
<body>
<div class ="Top-Bar">
<div class ="top-bar">
<img src ="./assets/images/icons/Logo.png" alt="logo" />
<h1 style="font-family:'Lucida Sans'"> Food Journal </h1>
@ -108,6 +107,6 @@
</fieldset>
<button type="submit" id="save-btn" value="Submit">Update Review</button>
</form>
</div>>
</div>
</body>
</html>

View File

@ -16,7 +16,7 @@
<link rel="stylesheet" href="./static/homepage.css" />
<script src="assets/scripts/main.js" type="module"></script>
</head>
<main>
<body>
<header>
<div class="top-bar">
<img src ="./assets/images/icons/Logo.png" alt="logo" />
@ -24,36 +24,28 @@
<img src ="./assets/images/icons/Logo.png" alt="logo" />
</div>
</header>
<body>
<!--
For mobile: + flex-direction: column-reverse;"
~ width: 100% for all divs
-->
<main>
<div class="body-container">
<div style="width: 20%;"></div>
<div style="width: 60%;">
<div class="center-display">
<img src ="./assets/images/icons/Grouppink.png" alt="CREATE" style="opacity: 100%;" id="create-btn" onclick="window.location.assign('./CreatePage.html')"></img>
<img src ="./assets/images/icons/Grouppink.png" alt="CREATE" style="opacity: 100%;" id="create-btn" onclick="window.location.assign('./CreatePage.html')"/>
<h2 id="recent-reviews-text"> Recent Reviews </h2>
<img src ="./assets/images/icons/Grouppink.png" style="opacity:0;"></img>
<img src ="./assets/images/icons/Grouppink.png" style="opacity:0;"/>
</div>
<div class="review-container" id="review-container"></div>
</div>
<div style="width: 20%;">
<form id="form">
<input type='search' id="seaching" name="searchBar" placeholder="Search journal...">
<input type="search" id="seaching" name="searchBar" placeholder="Search journal...">
<button class="click" type="search">
Search
</button>
<div class="Filter-box"></div>
</form>
</div>
</div>
</body>
</main>
</body>
</html>

View File

@ -7,21 +7,24 @@ body{
h1 {
text-align: center;
}
.Top-Bar{
.top-bar {
margin-top: -8cm;
}
.Top-Bar > img{
.top-bar > img {
position: relative;
top: 7.85cm;
}
.Top-Bar > h1{
.top-bar > h1 {
position: relative;
top: 2.2cm;
font-size: 3cm;
color: #EAA9BC
color: #eaa9bc;
}
.Top-Bar > form{
.top-bar > form {
position: relative;
left: 32cm;
}
@ -32,7 +35,7 @@ h1 {
display: block;
margin: auto;
color: #ccb3bb;
border: 3px solid rgb(7, 0, 0);
border: 3px solid rgb(7 0 0);
background-color: #b52754;
}

View File

@ -7,21 +7,24 @@ body{
h1 {
text-align: center;
}
.Top-Bar{
.top-bar {
margin-top: -8cm;
}
.Top-Bar > img{
.top-bar > img {
position: relative;
top: 7.85cm;
}
.Top-Bar > h1{
.top-bar > h1 {
position: relative;
top: 2.2cm;
font-size: 3cm;
color: #EAA9BC
color: #eaa9bc;
}
.Top-Bar > form{
.top-bar > form {
position: relative;
left: 32cm;
}
@ -32,7 +35,7 @@ h1 {
display: none;
margin: auto;
color: #ccb3bb;
border: 3px solid rgb(7, 0, 0);
border: 3px solid rgb(7 0 0);
background-color: #b52754;
}
@ -41,7 +44,7 @@ h1 {
margin: left;
width: 50%;
border: 3px;
color: rgb(228, 119, 119);
color: rgb(228 119 119);
text-align: left;
}

View File

@ -1,4 +1,5 @@
/* homepage.css */
/* Color */
body {
background-color: #97a5bd;
@ -8,18 +9,19 @@ body{
display: flex;
justify-content: center;
}
.top-bar > img {
position: relative;
align-self: center;
padding-left: 2.5%;
padding-right: 2.5%;
}
.top-bar > h1 {
position: relative;
text-align: center;
color: #E4C3D2;
color: #e4c3d2;
font-size: 6rem;
font-family: 'Lucida Sans';
}
.body-container {
@ -35,10 +37,9 @@ body{
}
#recent-reviews-text {
font-family: 'Lucida Sans';
text-align: center;
font-size: 4rem;
color: #E4C3D2;
color: #e4c3d2;
}
img#create-btn {
@ -54,6 +55,7 @@ img#create-btn {
flex-wrap: wrap;
justify-content: center;
}
.review-container > div {
background-color: #f1f1f1;
text-align: center;