Skip to content

Commit

Permalink
removed scoped styling. Removed hardcoded colors from ItemCount
Browse files Browse the repository at this point in the history
  • Loading branch information
crabinak authored and Rohan Bansal committed Apr 16, 2024
1 parent f0ff758 commit fb4e539
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 89 deletions.
1 change: 0 additions & 1 deletion beam/src/Confirm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ export default {
},
}
</script>
<style scoped></style>
2 changes: 1 addition & 1 deletion beam/src/ItemCount.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="beam__itemcount">
<span
:contenteditable="editable"
:style="{ color: countColor === true ? '#3c5014' : '#e63c28' }"
:class="{ alert: countColor === false }"
@input="handleInput($event)"
@click="handleInput($event)"
>{{ count }}</span
Expand Down
1 change: 0 additions & 1 deletion beam/src/ListAnchor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@ export default {
},
}
</script>
<style scoped lang="scss"></style>
1 change: 0 additions & 1 deletion beam/src/ScanInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,3 @@ export default {
},
}
</script>
<style scoped></style>
93 changes: 8 additions & 85 deletions beam/themes/_beam-primary.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ html {
--brand-primary: #827553;
--brand-secondary: #c4b695;
--brand-danger: #e63c28;
--brand-success: #3c5014;
--brand-success: #155724;
--brand-dark: #3a3c41;
--brand-light: #fff;
--text-color: #333;
Expand All @@ -35,17 +35,12 @@ body {
}
.beam__listview {
list-style-type: none;
/* margin: 0 1rem; */
margin: 2rem 1rem;
padding: 0;
padding-bottom: 2.5em;
/* display: flex;
flex-direction: column;
flex: 1 0 auto; */
}

.beam__listitem {
/* outline: 2px solid transparent; */
padding: 1rem;
border-bottom: 1px solid var(--light-gray);
max-width: 100%;
Expand All @@ -54,7 +49,6 @@ body {
flex-flow: row nowrap;
justify-content: space-between;
gap: 2rem;
/* width: calc(100vw - 3ch); */
}
.beam__listtext {
width: 80%;
Expand All @@ -70,27 +64,12 @@ body {
margin-bottom: 1rem;
overflow: hidden;
text-overflow: ellipsis;
/* width:270px;
max-width:270px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis; */
/* display: flex;
flex: 0 1 auto; */
}
.beam__listitem p {
font-size: 1.4rem;
margin: 0;
/* margin: 1rem 0; */
/* width:100px; */
/* white-space: nowrap; */
overflow: hidden;
text-overflow: ellipsis;
/* white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: flex;
flex: 0 1 auto; */
}

.beam__listitem:focus {
Expand All @@ -100,8 +79,6 @@ body {

.beam__itemcount {
font-size: 2.1rem;
/* display: flex;
flex: 0 1 auto; */
}
.beam__itemcount span {
margin: 0;
Expand All @@ -122,9 +99,9 @@ body {
color: var(--brand-primary);
background-color: var(--brand-light);
font-weight: bold;
/* outline: 2px solid var(--brand-primary); */
cursor: pointer;
border-radius: 2px;
transition: all 0.2s;

&:hover,
&:active {
Expand All @@ -151,9 +128,6 @@ body {
position: relative;
border-bottom: 1px solid var(--brand-primary);

/* padding-left: 1ch;
padding-right: 1ch; */

.nav-title {
display: inline-block;
border: 1px solid transparent;
Expand All @@ -162,41 +136,15 @@ body {
font-size: 2.4rem;
color: var(--brand-light);
}
/* .nav-title:hover {
border: 1px solid var(--brand-primary);
} */
.navbar-action-wrapper {
position: absolute;
right: 1rem;
top: 50%;
transform: translateY(-50%);
text-align: right;
}
.navbar-action {
/* font-size: 100%;
text-align: center;
min-height: 2.2em;
padding: 1rem 1.5rem;
border: 1px solid var(--brand-primary);
color: var(--brand-primary);
background-color: var(--brand-light);
font-weight:bold; */
/* outline: 2px solid var(--brand-dark); */
/* transition: outline-offset 200ms ease; */
/* cursor:pointer; */
}

.navbar-action:hover,
.navbar-action:active {
/* outline: 2px solid var(--brand-secondary); */
/* outline-offset: -4px; */
/* transition: outline-offset 200ms ease; */
/* background:white; */
/* color:var(--brand-secondary); */
}
}
.beam__actionfooter {
/* background-color: var(--brand-light); */
margin-left: 0;
background: rgb(255, 255, 255);
background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
Expand All @@ -205,37 +153,12 @@ body {
bottom: 0;
left: 0;
right: 0;
/* display: flex;
flex-flow: row nowrap;
align-content: center;
justify-content: space-between; */
padding: 1rem;
text-align: center;

.footer-action-wrapper {
/* max-width: 100%;
width: 100%;
text-align: center; */
}

.footer-action {
/* font-size: 100%;
text-align: center;
width: 10ch;
min-height: 2.2em;
padding-left: 1ch;
padding-right: 1ch;
border: 1px solid var(--brand-dark);
color: var(--brand-primary);
background-color: var(--brand-dark);
outline: 2px solid var(--brand-primary);
transition: outline-offset 200ms ease; */
}

.footer-action:hover,
.footer-action:active {
/* outline: 2px solid var(--brand-primary);
outline-offset: -4px;
transition: outline-offset 200ms ease; */
}
}
.success {
color: var(--brand-success);
}
.alert {
color: var(--brand-danger);
}

0 comments on commit fb4e539

Please sign in to comment.