Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
278 changes: 0 additions & 278 deletions scripts/portal_generator/assets/homepage.css

This file was deleted.

2 changes: 1 addition & 1 deletion scripts/portal_generator/assets/portal.js
Original file line number Diff line number Diff line change
Expand Up @@ -7087,7 +7087,7 @@ function addManualVariable(slug) {
'<td><input type="text" class="manual-var-value" placeholder="value" /></td>' +
'<td><span class="var-source">User Input</span></td>' +
'<td><button class="btn-delete-variable" onclick="deleteVariable(this, \'' + slug + '\')" title="Delete variable">' +
'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">' +
'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="vertical-align: top;">' +
'<line x1="18" y1="6" x2="6" y2="18"></line>' +
'<line x1="6" y1="6" x2="18" y2="18"></line>' +
'</svg></button></td>';
Expand Down
29 changes: 7 additions & 22 deletions scripts/portal_generator/assets/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
--color-blue-50: #eff6ff;
--color-blue-100: #dbeafe;
--color-blue-600: #2563eb;
--color-blue-700: #1d4ed8;
--color-blue-700: #1d4ed8;

/* Sky/Cyan scale */
--color-sky-200: #bae6fd;
Expand Down Expand Up @@ -1022,7 +1022,6 @@ code {
background: transparent;
color: var(--color-neutral-8);
cursor: pointer;
transition: all 0.15s cubic-bezier(0.4, 0.0, 0.2, 1);
display: flex;
align-items: center;
justify-content: center;
Expand All @@ -1037,7 +1036,6 @@ code {
.view-toggle-btn.active {
background: var(--selected-bg);
color: var(--selected-text);
border: 1px solid var(--selected-border);
margin: -1px;
}

Expand Down Expand Up @@ -1149,19 +1147,6 @@ code {
width: 25%;
}

.catalog-grid.list-view .catalog-card-description {
width: 60%;
margin-bottom: 0;
color: var(--color-neutral-7);
font-size: var(--font-size-4);
line-height: 1.5;
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
max-width: none;
}

.catalog-grid.list-view .catalog-card-footer {
width: 15%;
Expand Down Expand Up @@ -3348,7 +3333,7 @@ details[open] .examples-toggle-icon {
padding: 0.375rem 0.75rem;
background: var(--color-white);
border: 1px solid var(--color-gray-300);
border-radius: var(--radius-small);
border-radius: var(--radius-large);
font-size: var(--font-size-4);
font-weight: var(--font-weight-medium);
color: var(--color-gray-800);
Expand Down Expand Up @@ -3379,7 +3364,7 @@ details[open] .examples-toggle-icon {
min-width: 120px;
background: var(--color-white);
border: 1px solid var(--color-gray-300);
border-radius: var(--radius-small);
border-radius: var(--radius-large);
box-shadow: 0 4px 6px -1px var(--shadow-lg), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
z-index: 1000;
padding: 0.25rem;
Expand Down Expand Up @@ -7359,17 +7344,17 @@ input.has-variable-ref:focus {

.btn-delete-variable {
background: transparent;
border: none;
border: 1px solid transparent;
color: var(--color-gray-400);
cursor: pointer;
padding: 0.25rem;
border-radius: var(--radius-small);
transition: all 0.2s ease;
border-radius: var(--radius-large);
}

.btn-delete-variable:hover {
background: var(--color-red-100);
color: var(--color-red-600);
background: var(--color-red-50);
border-color: var(--color-red-400);
}

.var-name,
Expand Down
4 changes: 0 additions & 4 deletions scripts/portal_generator/templates/homepage.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

{% block title %}Anypoint Platform APIs{% endblock %}

{% block extra_styles %}
<link rel="stylesheet" href="assets/homepage.css">
{% endblock %}

{% block head_scripts %}
<script src="assets/jsonpath-plus.min.js" defer></script>
<script src="assets/portal.js" defer></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ <h4>{{ location|capitalize }} Parameters</h4>
<svg viewBox="0 0 16 16" fill="none"><path d="M6 4L10 8L6 12" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
</button>
{% endif %}
<code class="param-name">{{ param.name }}{% if param.required %}<span class="param-required" aria-label="required" title="Required">*</span>{% endif %}:</code>
<span class="param-name-wrapper">
<code>{{ param.name }}</code>{% if param.required %}&nbsp;<span class="param-required" aria-label="required" title="Required">*</span>{% endif %}:
</span>
<code class="param-type-inline">{{ param_type_simple(schema) }}</code>
</div>
{% if param.description or has_constraints or param.get('x-origin') %}
Expand Down
Loading
Loading