Skip to content

Commit

Permalink
updated list item styling
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 b298053 commit f0ff758
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 38 deletions.
5 changes: 3 additions & 2 deletions beam/src/ListItem.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<template>
<li tabindex="0" class="beam__listitem">
<span>
<div class="beam__listtext">
<label>{{ item.label }}</label>
<p>{{ item.description }}</p>
</span>
</div>

<ItemCount
v-if="item.count"
v-model="item.count.count"
Expand Down
47 changes: 33 additions & 14 deletions beam/themes/_beam-primary.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,26 +53,44 @@ body {
display: flex;
flex-flow: row nowrap;
justify-content: space-between;
gap: 2rem;
/* width: calc(100vw - 3ch); */
}
.beam__listitem label {
font-size: 150%;
max-width: calc(100vw - 10ch);
.beam__listtext {
width: 80%;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
flex-grow: 1;
}
.beam__listitem label {
font-size: 1.8rem;
font-weight: bold;
display: block;
margin-bottom: 1rem;
overflow: hidden;
text-overflow: ellipsis;
display: flex;
flex: 0 1 auto;
/* width:270px;
max-width:270px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis; */
/* display: flex;
flex: 0 1 auto; */
}
.beam__listitem p {
font-size: 90%;
font-size: 1.4rem;
margin: 0;
max-width: calc(100vw - 10ch);
white-space: nowrap;
/* 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;
flex: 0 1 auto; */
}

.beam__listitem:focus {
Expand All @@ -81,9 +99,9 @@ body {
}

.beam__itemcount {
font-size: 250%;
display: flex;
flex: 0 1 auto;
font-size: 2.1rem;
/* display: flex;
flex: 0 1 auto; */
}
.beam__itemcount span {
margin: 0;
Expand Down Expand Up @@ -141,7 +159,7 @@ body {
border: 1px solid transparent;
margin-left: 1rem;
text-align: left;
font-size: 1.8rem;
font-size: 2.4rem;
color: var(--brand-light);
}
/* .nav-title:hover {
Expand Down Expand Up @@ -180,7 +198,8 @@ body {
.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%);
color: var(--brand-dark);
position: fixed;
bottom: 0;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/rush/v5/rush-plugin-manifest.schema.json",
"plugins": [
{
"pluginName": "rush-sort-package-json",
"description": "Rush plugin for sort package.json file in the project",
"commandLineJsonFilePath": "command-line.json"
}
]
}
{
"$schema": "https://developer.microsoft.com/json-schemas/rush/v5/rush-plugin-manifest.schema.json",
"plugins": [
{
"pluginName": "rush-sort-package-json",
"description": "Rush plugin for sort package.json file in the project",
"commandLineJsonFilePath": "command-line.json"
}
]
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/rush/v5/command-line.schema.json",
"commands": [
{
"name": "sort-package-json",
"commandKind": "global",
"summary": "Rush plugin for sort package.json file in the project",
"shellCommand": "node <packageFolder>/lib/index.js",
"safeForSimultaneousRushProcesses": true
}
]
}
{
"$schema": "https://developer.microsoft.com/json-schemas/rush/v5/command-line.schema.json",
"commands": [
{
"name": "sort-package-json",
"commandKind": "global",
"summary": "Rush plugin for sort package.json file in the project",
"shellCommand": "node <packageFolder>/lib/index.js",
"safeForSimultaneousRushProcesses": true
}
]
}

0 comments on commit f0ff758

Please sign in to comment.