> For the complete documentation index, see [llms.txt](https://reputon.gitbook.io/reputon-help/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://reputon.gitbook.io/reputon-help/amazon-reviews-app/custom-style-codes/compact-rating-sticky-compact-rating-widget.md).

# Compact rating / sticky compact rating widget

## Change rating color

{% code overflow="wrap" %}

```css
/* change rating */
.reputon-amazon-reviews-widget .reputon-basic .reputon-rating-stars {color: green;}
	
/* change rating counter */
.reputon-amazon-reviews-widget .reputon-basic .reputon-count-number {color: green;}

/* change rating stars */
.reputon-amazon-reviews-widget .reputon-basic .reputon-count-text {color: green;}
```

{% endcode %}

<figure><img src="/files/p8vyMgM6sN0AU3izZkeo" alt=""><figcaption></figcaption></figure>

***

## Change name color

{% code overflow="wrap" %}

```css
.reputon-amazon-reviews-widget .reputon-basic .reputon-name {color: green;}
```

{% endcode %}

<figure><img src="/files/eBKXQ1lGgEqRF2eyh8bx" alt=""><figcaption></figcaption></figure>

***

## Change reviews counter color

{% code overflow="wrap" %}

```css
.reputon-amazon-reviews-widget .reputon-basic .reputon-reviews-count {color: green;}
```

{% endcode %}

<figure><img src="/files/JYfB7OKdpnAdDKb0xiXi" alt=""><figcaption></figcaption></figure>

***

## Change widget font

{% code overflow="wrap" %}

```css
.reputon-amazon-reviews-widget .reputon-basic .reputon-badge {font-family: Comic Sans MS !important;}
```

{% endcode %}

<figure><img src="/files/mPNlWK3UZpkmY2JLRRxj" alt=""><figcaption></figcaption></figure>

## Center reviews counter

{% code overflow="wrap" %}

```css
.reputon-amazon-reviews-widget .reputon-basic .reputon-reviews-count {align-self: center;}
```

{% endcode %}

<figure><img src="/files/Y11HfKrNNt1yuYpdnzNK" alt=""><figcaption></figcaption></figure>

***

## Center rating name

{% code overflow="wrap" %}

```css
.reputon-amazon-reviews-widget .reputon-basic .reputon-name {text-align: center;}
```

{% endcode %}

<figure><img src="/files/b7pu80ELDWbmi3py6LoT" alt=""><figcaption></figcaption></figure>

***

## Center rating

{% code overflow="wrap" %}

```css
.reputon-amazon-reviews-widget .reputon-basic .reputon-name {text-align: center;}
.reputon-amazon-reviews-widget .reputon-basic .reputon-content {align-items: center;}
```

{% endcode %}

<figure><img src="/files/1ew90jQyA6expFu6lX5Y" alt=""><figcaption></figcaption></figure>

***

## Change widget size

{% code overflow="wrap" %}

```css
/* plate */
.reputon-amazon-reviews-widget .reputon-basic .reputon-badge {padding: 5px;}

.reputon-amazon-reviews-widget .reputon-basic .reputon-badge .reputon-content {padding: 2px;}

/* logo */
.reputon-amazon-reviews-widget .reputon-basic .reputon-badge .reputon-image {
  width: 25px;
  height: 25px;
  min-width: 25px;}

/* text */
.reputon-amazon-reviews-widget .reputon-basic .reputon-badge .reputon-name {
  font-size: 12px;
  line-height: 16px;}

/* stars-text */
.reputon-amazon-reviews-widget .reputon-basic .reputon-badge .reputon-rating-stars .reputon-count-number {
  font-size: 12px;
  margin-right: 2px;}

/* stars */
.reputon-amazon-reviews-widget .reputon-basic .reputon-badge .reputon-rating-stars .reputon-icon-star {
  width: 12px;
  height: 12px;
  margin-right: 2px;}

.reputon-amazon-reviews-widget .reputon-basic .reputon-badge .reputon-rating-stars .reputon-count-text {
	gap: 0;}

/* change container width */
.reputon-amazon-reviews-widget .reputon-basic .reputon-badge .reputon-container {
	min-width: 160px;
	width: 100px;}
```

{% endcode %}

<figure><img src="/files/vTf2zOHZv9magq53Iddt" alt=""><figcaption></figcaption></figure>

## Add margin above widget

{% code overflow="wrap" %}

```css
.reputon-amazon-reviews-widget .reputon-basic .reputon-badge {margin-top: 100px !important;}
```

{% endcode %}

***

## Add margin below widget

{% code overflow="wrap" %}

```css
.reputon-amazon-reviews-widget .reputon-basic .reputon-badge {margin-bottom: 100px !important;}
```

{% endcode %}

***

## Change orange line color

{% code overflow="wrap" %}

```css
.reputon-amazon-reviews-widget .reputon-basic .reputon-badge:before {background: green;}
```

{% endcode %}

<figure><img src="/files/PzTgQ8wmr9cEHEQ4KOjo" alt=""><figcaption></figcaption></figure>

***

## Move widget to the left

{% code overflow="wrap" %}

```css
.reputon-amazon-reviews-widget  .reputon-basic {
  margin: 0 !important;} 

.reputon-amazon-reviews-widget {
  justify-content: flex-start !important;}
```

{% endcode %}

<figure><img src="/files/w0sc8TP92EcapO4pAnln" alt=""><figcaption></figcaption></figure>

***

## Move widget to the right

{% code overflow="wrap" %}

```css
.reputon-amazon-reviews-widget  .reputon-basic {
  margin: 0 !important;} 

.reputon-amazon-reviews-widget {
  justify-content: flex-end !important;}

/* center on mobile devices */
@media (max-width: 640px) {
  .reputon-amazon-reviews-widget .reputon-basic .reputon-badge {
    transform-origin: center;}}
```

{% endcode %}

<figure><img src="/files/hVzvarvY2tnqWcLd6xZh" alt=""><figcaption></figcaption></figure>

## Change background color

{% code overflow="wrap" %}

```css
.reputon-amazon-reviews-widget .reputon-basic .reputon-container {background: antiquewhite;}
	
/* hovered state color */
.reputon-amazon-reviews-widget .reputon-basic .reputon-container:hover {background: brown;}

/* Add this code to theme.liquid to change the widget section color. */
<style> 
	section:has(.reputon-amazon-reviews-widget .reputon-basic) {background: bisque;}
</style> 
```

{% endcode %}

<figure><img src="/files/rBxv4OGFza8grmZRxawa" alt=""><figcaption></figcaption></figure>

***

## Remove shadow and add border

{% code overflow="wrap" %}

```css
.reputon-amazon-reviews-widget .reputon-basic .reputon-badge {
	box-shadow: none;
	border: 2px solid coral;}
```

{% endcode %}

<figure><img src="/files/R1W6wV4JOTudNslR82lm" alt=""><figcaption></figcaption></figure>

***

## Remove widget blocks

{% code overflow="wrap" %}

```css
/* remove name */
.reputon-amazon-reviews-widget .reputon-basic .reputon-info .reputon-name {display: none;}

/* remove reviews count block */
.reputon-amazon-reviews-widget .reputon-basic .reputon-info .reputon-reviews-count {display: none;}

/* remove logo */
.reputon-amazon-reviews-widget .reputon-basic .reputon-info .reputon-image {display: none;}

/* remove rating */
.reputon-amazon-reviews-widget .reputon-basic .reputon-info .reputon-rating-stars {display: none;}
```

{% endcode %}

***

## Apply black-and-white filter

{% code overflow="wrap" %}

```css
.reputon-amazon-reviews-widget .reputon-basic {filter: grayscale(100%);}
```

{% endcode %}

<figure><img src="/files/JNmfhO3IJ4V4Enoy9NT0" alt=""><figcaption></figcaption></figure>

***

**Questions about CSS or need assistance? We're excited to help:** [**support@reputon.com**](mailto:support@reputon.com) **or** [**live chat**](https://go.crisp.chat/chat/embed/?website_id=d24ef16e-6e05-49e9-bd59-a6f3bde0658a)**.**


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://reputon.gitbook.io/reputon-help/amazon-reviews-app/custom-style-codes/compact-rating-sticky-compact-rating-widget.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
