There are basic definitions of continuous, discrete, and mixed random variables, that can be understood by who are less familiar with measure theory (see PS1 for more technical details).
Continuous random variables
Two equivalent definitions for continuous random variables are as follows:
First definition:
A random variable $X$ is continuous iff $\mathbb P(X=x)=0$ for any $x\in\mathbb R$.
Second definition:
A random variable $X$ is continuous iff its cdf $F_X(x)=\mathbb P(X \le x)$ is continuous on $\mathbb R$ (equivalently, the image of the cdf inculdes $(0,1)$).
Note that the image of any cdf is a subset of $[0,1]$, but for a continuous random variable it is a superset of $(0,1)$ (it may not include $0$ or $1$, for example, consider normal and exponential distributions). A deep analysis of the image of a cdf can be found here [1].
Discrete random variables
Similarly, two equivalent definitions for discrete random variables are as follows:
First definition:
A random variable $X$ is discrete iff $\sum_{x \in S_0}\mathbb P(X=x)=1$ for a countable set $S_0$ of points, where $\mathbb P(X=x)>0$ for $x\in S_0$ and $\mathbb P(X=x)=0$ for $x\notin S_0$ (equivalently, $\mathbb P(X\in K)=1$ for some countable set $K$).
The set $S_0=\{ x \in \mathbb R: \mathbb P(X=x)>0 \}$ is a subset of the image of $X$, denoted by $X(\Omega)$ (when $X$ is viewed as a Borel measurable function on the sample space $\Omega$), which is also called the support of $X$ (see this answer [2] for two equivalent definitions of the support of a random variable); in fact, there are some pathological cases that the image $X(\Omega)$ is larger than the set $S_0$ appeared above and is equal to the union of $S_0$ and a null set $N$ (see PS4 for more details). Note that $K$ is not unique and can be any countable superset of $S_0$, which is the smallest possible $K$. In sum, the image of a discrete random variable is the union of a countable set (its support) and a null set (so the image can be countable or uncountable), and the image of any non-discrete (continuous or mixed) random variable is always uncountable.
Second definition:
A random variable $X$ is discrete iff its cdf $F_X(x)=\mathbb P(X \le x)$ is discontinuous only on a countable set of points in $\mathbb R$ whose jump values sum to $1$ (equivalently, the image of the cdf is a null set).
Indeed, the cdf has jumps only on the set $S_0$, and is continuous on $ \mathbb R \setminus S_0$ where $S_0$ is the set appeared in the first definition. When $S_0$ is finite or can be ordered with respect to the usual order of numbers, the cdf is a staircase function (also called step function [3]). If $S_0$ is a densely ordered set [4] such as the set of rational numbers in $[0,1]$, the cdf can be strictly increasing with no flat areas; see here [5] for more details. Hence, the image of the cdf of a discrete random variable can be uncountable set (as well as its pushforward measure). The equivalent condition given in the parentheses follows from the fact that any increasing function is discontinuous at most on a countable set, and thus $F_X$ has a null image (its Lebesgue measure is zero) iff its jump values sum to $1$. In fact, it is not required to mention that the set of discontinuities is a countable set in the first part of the definition, but I kept it since some people may be not aware of such a result (i.e., the set of discontinuities is either empty or countable for any increasing function).
Mixed random variables
Simply, a random variable $X$ is called mixed when it is neither continuous nor discrete.
An example of a mixed random variable is $X=\min(U,0.5)$ where $U \sim \mathcal U(0,1)$. Indeed, for $x=0.5$, $\mathbb P(X=0.5)=0.5>0$ whereas $\mathbb P(X=x)=0$ for any $x\neq 0.5$. Similarly, the cdf $F$ is given by
$$ F(x) = \begin{cases}
0 &\quad x<0\\
x & 0\le x<0.5 \\
1 &x\ge 0.5\\
\end{cases}$$
which is neither a continuous nor a staircase function (note that the set of discontinuities is finite).
PS 1: It should be noted that measure theory is required to properly define the concept of random variable $X$, and probabilities $\mathbb P(X=x)$ and $\mathbb P(X \le x)$ used in the above definitions. Given the probability space $(\Omega, \mathcal F, P)$, $X:\Omega \to \mathbb R$ is called a random variable if it is Borel measurable, and the probabilities are computed as $$\mathbb P(X=x)=X_*(P)(\{x\})=P\left (X^{-1}(\{x\})\right)$$ $$\mathbb P(X \le x)=X_*(P)\left((-\infty,x] \right)=P\left (X^{-1}((-\infty,x])\right)$$ where $X_*(P)$ denotes the pushforward measure of $P$ by random variable $X$.
PS 2: Some authors call continuous, discrete, and mixed random variable, defined above, as a random variable with continuous, discrete, and mixed distribution. The terms "absolutely continuous distribution" and "absolutely continuous random variable " may be also used for a continuous random variable with a pdf, that is, there is a non-negative function $f:\mathbb R \to \mathbb R_{\ge 0}$ such that its cdf can be represented as $F_X(x)=\int_{-\infty}^x f(t) \text{d}t$ for any $x\in \mathbb R$.
PS 3: According to the classification given in Cramér's book (Random Variables and Probability Distributions), there are four mutually exclusive types of distributions: discrete, absolutely continuous, singular continuous, and a mixture of some of the preceding types. In fact, absolutely continuous and singular continuous, and their convex combinations form the class of continuous distributions.
The above classification is based on the fundamental Lebesgue's decomposition theorem [6] , which states the cdf $F_X$ of any random variable $X$ can be decomposed as follows for some non-negative weights $\alpha_{AC},\alpha_{SC},\alpha_D$ with $\alpha_{AC}+\alpha_{SC}+\alpha_D=1$:
$$F_X(x)=\alpha_{AC} (x)+\alpha_{SC} F_{SC}(x)+\alpha_D F_DF(x)$$
where $F_{AC}(x)$, $F_{SC}(x)$, and $F_D(x)$ are cdfs of some absolutely continuous, singular continuous, and discrete distributions, respectively. For a continuous random variable $X$, we have $\alpha_D=0$, and for a continuous random variable $X$ with a pdf, we have $\alpha_{SC}=\alpha_D=0$.
PS 4: It should be noted that a continuous random variable $X:\Omega \to \mathbb R$ cannot be defined only based on $\Omega$ or the image $X(\Omega)$ since it also depends on the probability measure $P$ defined on $\Omega$. In fact, the sample space $\Omega$ can be uncountable, but $X$ is a discrete random varaible, e.g., when $X$ is a constant $c$, $X(\omega)=c, \forall \omega\in\Omega$. Moreover, the image of $X$ can be uncountable, but $X$ is classified as a discrete random variable, e.g., when $X$ is a constant $c$ with probability one, defined as $X(\omega)=c, \forall \omega\in [0,1]\setminus N$ and $X(\omega)=\omega, \forall \omega \in N$, where $N$ is an uncountable null subset of $[0,1]$ such as the Cantor set [7] in $[0,1]$ and where the Lebesgue measure is considered as the probability measure on the sample space $\Omega=[0,1]$.
In sum, random variables defined on an uncountable sample space (such as a continuum) can be of any type whereas any random variable defined on a countable sample space is discrete. Indeed, a random variable $X$ cannot be classified only based on the sample space $Ω$ or the image $X(Ω)$ because the classification also depends on the probability measure defined on $Ω$, unless $Ω$ is a countable set for which $X$ is always discrete.
PS 5: Last but not least, the terminology used for continuous and discrete random variables may be confusing since random variables are formally defined as special functions. Indeed, a random variable $X$ is a (Borel measurable) function from the sample space $\Omega$ to $\mathbb R$, for which generally we cannot define continuity unless the sample space $\Omega$ is an open subset of some topological/metric space. Even in this case, a continuous random variable $X$ can be a non-continuous function on $\Omega$. For example, let us define $X(\omega)= 0, \omega \in (0,1)\cap \mathbb Q$ and $X(\omega)= \omega, \omega \in (0,1)\setminus \mathbb Q$ where the probability measure is the Lebesgue measure on $\Omega=(0,1).$ Indeed, $X$ is a continuous random variable with distribution $\mathcal U(0,1)$, but it is not a continuous function over $\Omega=(0,1)$. On the other hand, $X(\omega)= 0, \omega \in (0,1)$ is a discrete random variable, but it is a continuous function on $\Omega=(0,1)$. In fact, the adjectives "discrete", "continuous", and "mixed" have been used to approximately describe the set of values retuned by random variables, not to describe them as some functions.